Skip to content

Releases: voyera/weedcrawler_map

v1.3.0 - Switch basemap to OpenFreeMap vector tiles

Choose a tag to compare

@voyera voyera released this 08 Sep 22:32
55bd32a

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-leaflet 0.1.4. No API key, no request limits, free for commercial use.
  • Leaflet markers, popups and marker clustering are untouched. Theme toggle calls setStyle on 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, addMarkers crashed on this.map being null. loadStores now 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.0 after merge so cdn.jsdelivr.net/gh/voyera/weedcrawler_map@1.3.0/cannabis-store-map.min.js resolves; 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

Choose a tag to compare

@voyera voyera released this 25 Mar 16:49
3cd1a8a

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: false to 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.

Choose a tag to compare

@voyera voyera released this 14 Jul 18:51
563e059
Merge pull request #1 from voyera/feature/2025.07.14

Feature/2025.07.14

First release of the Weed Crawler embedded map

Choose a tag to compare

@voyera voyera released this 11 Jul 13:55