Google Maps: How to prevent InfoWindow from shifting the map

Posted by TeddyN on Stack Overflow See other posts from Stack Overflow or by TeddyN
Published on 2010-03-21T22:25:31Z Indexed on 2010/03/21 22:31 UTC
Read the original article Hit count: 356

Using Google Maps API v3.

I noticed that if I have a map marker near the edge of my map border ... that if I click the marker icon so that the InfoWindow will display, my entire map shifts so that the markers InfoWindow is centered.

I don't want my map to shift.

Question: How do I prevent the map from shifting when InfoWindows are near the end of the map border (which causes the InfoWindow by default to center & shift the map)?

© Stack Overflow or respective owner

Related posts about google-maps

Related posts about JavaScript