-
-
Notifications
You must be signed in to change notification settings - Fork 871
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
Creating a popup onTap that stays above marker regardless of zoom #354
Comments
Can you post a sample that helps clarify the issue? |
Yes, here's an example. Notice that because I defined the info window's position as a specific LatLng, it gets further away from the marker when you zoom in and close to the marker when you zoom out.
Here's an example of Google Map's Info Window: https://developers.google.com/maps/documentation/javascript/examples/infowindow-simple |
You should be able to draw a widget above the marker in the Marker's |
Facing same problem. @garrrettt Did you managed to implement this? Thanks! |
@garrrettt Remove your accessToken ;) |
In #184 and #75, the solution to creating a popup similar to Google Map's Info Window was to create another marker to be used as a popup that becomes visible when the first marker is tapped.
I implemented this advice, but keeping the popup directly above the marker is difficult, especially when the zoom changes. I tried specifying a LatLng for the popup that had a certain offset from the marker, but when the zoom changes, the popup and marker either get squished together or become too far apart.
Do you have any ideas how I might keep the popup directly above the marker, regardless of zoom?
The text was updated successfully, but these errors were encountered: