How to get the center of a popup? #1376
Unanswered
jason-symbiote
asked this question in
Q&A
Replies: 1 comment
-
|
Recently solved a similar problem with markers and popups - in our case, we just panned to the position of the marker, which you would know when you're rendering the popup. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Thanks for this great plugin, It handles our map requirements in a nice way:)
I am building a map with markers and when user clicks on a marker it popups with some information and map flies to the centre of the popup and active marker.
I wonder if I can get the centre of a popup's? Because when I render a popup I simply use the lat and lon of the marker and make the popup's anchor props 'bottom'. How do I calculate the centre of a popup?
Beta Was this translation helpful? Give feedback.
All reactions