How to set anchor on marker? #113
tylerclark
started this conversation in
General
Replies: 1 comment 1 reply
-
Ok I was able to get some stuff going. I know using Options API vs Composition API is not the cool way but it's the way I've been coding for years. Here is what I did:
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there! First off, fantastic product. I was doing all this Google Maps stuff manually and it's been very difficult. That being said, I am almost at the finish line but running into issues as I get into the details.
At first, I wanted to use a custom HTML marker because that's what I had previously (showing users initials), but I'm willing to scrap that in favor of icon (SVG I hope). I have the following icon properties:
This just makes a white circle. However, I notice when zooming in it seems like the circle is moving and that is because the
anchor
point is not centered. It's at point0,0
. So I'm trying to add that option but it looks like this:new google.maps.Point(75,-75)
.I am not able to get into the
google.maps
object? Is there a workaround or another way to access? Or another way to center the anchor point?As a bonus, it would be fantastic if I could have a custom HTML marker. I am linking instructions on how I did it before. That would be icing on the cake!
Oh also I am using the options API not composition API!
Beta Was this translation helpful? Give feedback.
All reactions