-
Notifications
You must be signed in to change notification settings - Fork 7
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
Map acting jumpy (panning in response to interaction with map marker / infowindows) #301
Comments
Yeah, I'm seeing this too - for example, this is about as close as a marker can be to the left side of the screen; if the marker is even 10px to the left and you hover over it, the map pans before opening the infowindow despite having plenty of room to display the infowindow. I think behavior with markers near the top might be OK in terms the amount of space google maps tries to provide between the top of the infowindow and the top of the screen: Getting the left margin between the infowindow and the side of the screen in the first example to match the top margin in the second example would be a start. |
I'm not finding an easy way to deal with this in google maps; our best option may be to disable the auto-pan functionality. There is no option in the InfoWindowOptions object specification to control the auto pan margin (but we could set This jsfiddle shows the behavior we want (via a I'll push a branch with autopan disabled so we can try that. |
I had a feeling this would be annoying |
If we really needed to get this working, we could create our own auto-pan functionality and attach that to the I also thought maybe if we set the |
Disabling autopan works surprisingly well for icons close to the frame. It also seems to have slowed the autopan when you navigate away from schools altogether, which is quite nice. |
Hm actually it's not stable - the navigation back to schools is slow (and nice) only sometimes. Not sure what the pattern is. |
@Lilith-Palmer yeah I think #298 is a pretty different issue; wouldn't expect this would have any impact on it |
@techieshark it does seem to be better for the frame issue |
Disable for now - we can explore properly at a later point. Seeing how users interact with/react to the different options would be helpful. |
* the marker icons we use have a transparent fill in the bottom half of their image (the pointy part of the pin icon is in the center of the marker image, and there is a shadow "beneath" the pin that extends a bit below the pin's point). * this change tells google maps to not change the mouse cursor when the mouse is hovering over that bottom half of the marker's icon (in that mostly transparent region) * this isn't a fix for #301 but is sort of related; may help when markers are near bottom of screen
If an icon is close to the map frame border, and the user hovers over it, the map shifts so the icon is more centred. this is happening even when the location/name is clear and does not require more space.
The text was updated successfully, but these errors were encountered: