Skip to content

Does the AdvancedMarker support something similar to the anchorPoint on the legacy Marker component? #273

Answered by usefulthink
TiagoPortfolio asked this question in Q&A
Discussion options

You must be logged in to vote

You can put any component or html-element inside the AdvancedMarker component, and those elements will be rendered such that the top-left corner of the element ends up at the geographic location of the marker. From there you can use regular CSS to reposition the element as needed (e.g. tranform: translate(-50%, -50%) to move the anchor-point to the center of the element).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TiagoPortfolio
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