I'm using a Google map with markers setup to show locations on a map. I'm using the idle event to determine when to submit the request for new data, so that when a user pans or zooms the map, an ajax service will be called and the markers will be updated to find locations in the new viewport.
The problem is that when a user clicks on a marker to pop up the infowindow, the map often moves slightly to center the infowindow-- which triggers another idle event and resets the map, closing the infowindow.
Is there a best practice for this? Is there a way to disable the idle listener when an infowindow is opened, or is there a standard workaround?
disableAutoPan: true: Disable auto-pan on open. By default, the info window will pan the map so that it is fully visible when it opens. - Anto Jurkovićidleevent if an infowindow is open, or some workaround like that. - user101289