fitBounds() to lng/lat + radius #4426
Answered
by
HarelM
MarkusWendorf
asked this question in
Q&A
-
Hello there, I want to use the Is there a way to use I was thinking about using something like this to convert it to a polygon first: https://github.com/gabzim/circle-to-polygon/blob/master/index.js |
Beta Was this translation helpful? Give feedback.
Answered by
HarelM
Jul 18, 2024
Replies: 1 comment
-
You'd need to calculate the bounding box of the circle and feed that into the fit bounds function. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MarkusWendorf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'd need to calculate the bounding box of the circle and feed that into the fit bounds function.
It should be fairly trivial math I believe.