Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlay is bigger then marker #167

Open
Any-More opened this issue Nov 25, 2019 · 1 comment
Open

Overlay is bigger then marker #167

Any-More opened this issue Nov 25, 2019 · 1 comment

Comments

@Any-More
Copy link

Hello everybody
First I would like to thank you for this fantastic project.
Unfortunately I have a little problem with the overlay size. No matter how big my marker image is, the overlay image is always bigger and covers the other markers
is there a possibility to put the overlay picture on the same size of the marker picture?
Or do I have a reasoning error?
Thanks for your help

Gruss Marc
0062

@paulyoung5
Copy link

hi @Any-More 👋

when you say 'overlay image', is this preventing click events on the marker underneath (or click events happening on the wrong marker)?

assuming you're using a custom marker icon, I think you're right that this space comes from img being larger than your actual marker graphic. you'll need to tweak the origin, size/scaledSize and anchor properties to remove any undesired space (see https://developers.google.com/maps/documentation/javascript/markers#complex_icons)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants