Open kevinwhoffman opened 9 years ago
Yeah I noticed that too. Should it center on the map or just scroll into view?
I prefer centering it. With that said, I don't think centering is as important at far out zoom levels, but at closer zoom levels, centering the marker allows you to see more of the surrounding context. You can see that behavior here: http://celebrateditaly.com/map/
Centering also better ensures that the info window doesn't overlap controls when clicking a marker along the edge of the map.
Following is based off what I see at http://mapsbuilder.wordimpress.com/demo/mashups/
When clicking a marker near the top of the frame, the map repositions itself but not far enough to contain the entirety of the info window. I think what is happening is the reposition occurs before all of the content is loaded, so it doesn't know how far north it needs to move in order to reveal the entire info window. See below:
At this point the reposition has already occurred, so when the content loads in a second later, it becomes cropped.
Can you wait to fire the reposition until after the content has loaded?