Design comparison
SolutionDesign
Solution retrospective
Created this project using Vite, React, react-leaflet and IP Geolocation API. When displaying the map I'm not sure how to make the map pan to the marker when the position of the marker changes. I'm currently using useMapEvent of react-leaflet but I'm not sure what is the best practice. Please let me know of any issues or things to improve on.
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord