问题
Markers open a window containing a couple paragraphs of text. When users click a marker, the map repositions itself (typically shifting the map north) to display the pop-up.
Is there a method for preventing this repositioning action?
回答1:
Set the disableAutoPan option:
infowindow.setOptions({disableAutoPan: true});
Documentation here
来源:https://stackoverflow.com/questions/14596635/prevent-map-from-repositioning-when-clicking-a-marker-google-map-v3