Skip to content

Dom.setTransform clarification question #4000

Answered by HarelM
ferdicus asked this question in Q&A
Discussion options

You must be logged in to vote

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,…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ferdicus
Comment options

@HarelM
Comment options

Answer selected by ferdicus
@ferdicus
Comment options

@HarelM
Comment options

@ferdicus
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants