Hi
Is it possible to get events using react-leaflet?.. specifically want to show / hide Markers based on zoom level.
Thanks
Hi, please refer to the relevant section of the documentation.
Which is the relevant section you refer to? I need this fuctionality too
Basically just prefix Leaflet events with 'on', so zoom, becomes onZoom. I believe
<Map onZoomlevelschange={(e) => { console.log(e); }}> ... </Map> should work.
That's what I've been doing with the 'zoom' event.