PaulLeCam / react-leaflet

React components for Leaflet maps
https://react-leaflet.js.org
Other
5.19k stars 887 forks source link

Is there a way to calculate a circle with a 150-meter radius around the marker? #1132

Closed EduardoScrobote closed 7 months ago

EduardoScrobote commented 7 months ago

I create a circle around the marker when I click on it, and furthermore, a zoom is applied centering the marker on the screen. However, I would like to know if there is a way to calculate the size of this circle for a 150-meter radius around the marker, taking into account the curvature of the earth...

EduardoScrobote commented 7 months ago

I found out that the library defaults the value of the circle's radius to meters .