Repository navigation
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
|
There are use cases where I want my AdvancedMarker to be rendered anchored to the bottom or center of the point. Cheers! |
Answered by
usefulthink
Mar 20, 2024
Replies: 1 comment
|
You can put any component or html-element inside the |
0 replies
Answer selected by
TiagoPortfolio
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can put any component or html-element inside the
AdvancedMarkercomponent, 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).