Open vidaHd opened 1 year ago
@vidaHd check this codesandbox
@AndrejGajdos that doesn't really answer the question as the codesandbox does not use https://react-leaflet.js.org/
@t3chguy it's super easy based on the codesandbox I provided. React leaflet is just an envelope for Leafet.
If only it was that simple
react-leaflet
does its own magic on leaflet which makes it incompatible with a bunch of plugins
@t3chguy share your code
Well trying to reproduce it on CodeSandbox rubber-ducked it enough. It was due to Vite stripping what it believed was not a referenced dependency. Indeed it does work, thanks for jostling that.
I tried to use this with react leaflet but i got some problems Is it compatible with react leaflet?