Do you want to include interactive maps in your Nextjs application?Then you must have come across Leafletjs. Though Leafletjs is very simple to use...
For further actions, you may consider blocking this person and/or reporting abuse
just a little add here for others wondering how to capture the position(lat,lng) after the marker is dragged,
i just added a ref to the marker and eventHandlers function, below is the full code
so that when the marker is moved, we will get the current position (lat,lng) of that marker
Thanks alot , you saved me
Fantastic post - really showing some useful insights - found it look for the windows SSR issue
wow, excelente tu publicacion me ayudo mucho a resolver el problema de ssr de windows!!!
Hi I install but got ReferenceError: document is not defined
This error happened while generating the page. Any console logs will be displayed in the terminal window.
from file:///C:/Users/TESS/Documents/GitHub/ecoechange/front/node_modules/leaflet/dist/leaflet-src.js (1826:17)
I had tried lot method but still not fingure out, does it happend to you guys? and how to resolve it with react next js ? tks
Hi, I think the issue might be an incorrect import or the Map component being rendered directly instead of the MapWithNoSSR component.
Good One !!
<MapContainer style={{ height: "100%", width: "100%" }}>
was necessary to get it working for me.Thanks you!
Thanks man, that was helpful
Thanks a lot