Calling Google Maps Infowindow.open Causes Website To Scroll Down To The Infowindow
I am pretty sure this was not the default behaviour for Google Maps API for quite some time, but it must have changed in the meantime. I modified Fiddle provided by google: https:/
Solution 1:
The default behavior of InfoWindow.open()
is to have the browser focus on the element. This can be changed by using InfoWindowOpenOptions.
infowindow.open({anchor: marker, shouldFocus: false});
instead of:
infowindow.open(map, marker);
Post a Comment for "Calling Google Maps Infowindow.open Causes Website To Scroll Down To The Infowindow"