-
Just going through the code and checking the DOM method Wouldn't this also overwrite user set transform related styles - like for example Thanks in advance |
Beta Was this translation helpful? Give feedback.
Answered by
HarelM
Apr 16, 2024
Replies: 1 comment 5 replies
-
Can you be more specific? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ahh, OK, now I understand the initial statement.
The popup itself is an out of the box solution to most use cases.
The anchor and content are calculated for every map movement and are placed in the right location according to where the marker is and the map's canvas, for example when the popup's point is in the corner like so:
If you need a different behavior, I guess your best bet would be to write your implementation of the popup/marker with the relevant css.
I'm not aware of a better way to move an html element that resides on the canvas besides using translate.
Another option is to apply custom transformation, somewhat similar to what we recently introduced with the marker's opacity,…