Releases: voyera/weedcrawler_map
Releases · voyera/weedcrawler_map
Release list
v1.3.0 - Switch basemap to OpenFreeMap vector tiles
Why
- CARTO now watermarks keyless raster tiles with "API KEY REQUIRED" (since late Aug 2026). Every client embed using the dark theme is affected, e.g. https://www.3saints.ca/where-to-buy.
- The light theme was pulling tiles directly from openstreetmap.org, which the OSM tile usage policy forbids for widgets distributed to third-party sites.
What
- Both themes now use OpenFreeMap vector tiles (Positron light, Dark dark) rendered by MapLibre GL 5.24.0 through
@maplibre/maplibre-gl-leaflet0.1.4. No API key, no request limits, free for commercial use. - Leaflet markers, popups and marker clustering are untouched. Theme toggle calls
setStyleon the same WebGL context. - Keyless Esri Light/Dark Gray canvas raster tiles are used only if WebGL or the MapLibre scripts are unavailable.
- Mandatory "OpenFreeMap © OpenMapTiles Data from OpenStreetMap" attribution is shown in the Leaflet attribution control, with links.
- Fixes a race: when the API response arrived before the map dependencies finished loading,
addMarkerscrashed onthis.mapbeing null.loadStoresnow parks the data and the init path replays it. - Version bumped to 1.3.0 in the header, README CDN links and demo snippet. Tag
1.3.0after merge socdn.jsdelivr.net/gh/voyera/weedcrawler_map@1.3.0/cannabis-store-map.min.jsresolves; clients then bump the version in their script tag.
Verified locally
- Demo API key: 2481 stores fetched, 1451 Ontario markers clustered, light → dark → light toggles, no console errors.
- Dark style fully applied after toggle (background rgb(12,12,12), 282 rendered basemap features).
v1.2.0 - Marker Clustering
What's New
Marker Clustering
Nearby store markers are now automatically grouped into clusters when the map is zoomed out, providing a much cleaner view when displaying many stores at once. Clicking a cluster zooms into the individual markers within it.
- Clusters display the count of stores they contain
- Three visual tiers (small, medium, large) based on cluster size
- Smooth hover animation and zoom-to-bounds on click
- Spiderfy at max zoom to spread overlapping markers
- Fully theme-aware -- cluster icons adapt to light/dark mode
New Options
| Option | Type | Default | Description |
|---|---|---|---|
clustering |
boolean | true |
Enable/disable marker clustering |
clusterRadius |
number | 50 |
Pixel radius for grouping markers |
disableClusteringAtZoom |
number | 15 |
Zoom level where individual markers always show |
spiderfyOnMaxZoom |
boolean | true |
Spread overlapping markers in a spiral at max zoom |
Details
- Clustering is enabled by default -- no code changes needed for existing integrations
- Set
clustering: falseto revert to the previous individual-marker behavior - Powered by Leaflet.markercluster v1.5.3, loaded automatically from CDN
Actively developing the Cannabis Store Map with recent additions including dynamic loading, internationalization (English/French support), documentation, and the core dark/light mode functionality.
Merge pull request #1 from voyera/feature/2025.07.14 Feature/2025.07.14
First release of the Weed Crawler embedded map
Full Changelog: https://github.com/voyera/weedcrawler_map/commits/1.0.0