You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I imagine many new users for PMTiles on Leaflet these days are using React.
It took me a bit of time to figure out how to set up reading mvt files in react-leaflet but it turned out to be kind of simple. I'd appreciate if you added an example to https://protomaps.com/docs/frontends/leaflet that works with the CDN setup in the docs to save other new users some time.
Thanks for the example! I'm reluctant to add this because whilereact-leaflet , react-map-gl etc are popular they are only relevant to Leaflet/MapLibre and not anything protomaps or vector tile related directly. So most users would be better served by consulting separate documentation for frameworks that wrap leaflet or maplibre.
I imagine many new users for PMTiles on Leaflet these days are using React.
It took me a bit of time to figure out how to set up reading mvt files in
react-leaflet
but it turned out to be kind of simple. I'd appreciate if you added an example to https://protomaps.com/docs/frontends/leaflet that works with the CDN setup in the docs to save other new users some time.Here's what I ended up with:
and
The text was updated successfully, but these errors were encountered: