jbdemonte / gmap3

jQuery plugin to create Google maps
http://gmap3.net
668 stars 198 forks source link

How to prevent auto map positioning when opening info window? #100

Closed TheInvoker closed 8 years ago

TheInvoker commented 8 years ago

In my code, I programatically open info windows of several markers at the same time using

infowindow.open(map, marker);

however, since the map auto focuses on each one when the infowindow opens, the map quickly jumps around on each markers, which looks bad. Is there a way I can disable, auto map panning when opening info windows?

Thanks

TheInvoker commented 8 years ago

Nevermind, I figured it out here https://developers.google.com/maps/documentation/javascript/reference#InfoWindowOptions

disableAutoPan

option, make it true.