I have Google Maps with Javascript API with a single marker on it. This single marker has an infowindow showing.
When I call marker.setPosition()
to move the marker, if the infowindow is open, and the marker is off-screen, then the map pans to bring the marker and infowindow into view.
How can I stop this behavior? I want to move the marker, but leave it off screen, and leave the map position where it is.
If I close the infowindow, then calling marker.setPosition()
doesn't pan the map. The unwanted behavior only happens when the infowindow is open.