Do not fire 'zoom_changed' event when calling fitBounds function on map
dom-events, google-maps, google-maps-api-3
Solution
When you do a fitBounds in your program, set a global flag. When the zoom_changed event fires, if the flag is set, clear it, otherwise send your request off to the server.
Problem
Is there a way to prevent the `zoom_change` event from being triggered if it occurs due to `fitBounds()` ? I am having an issue where I need to do a search on the server from client when there is a zoom change to map but every time I call `fitBounds()` it causes `zoom_change` to trigger which causes the client to do another search on the server. I am only interested in zoom_change done by users and not programmatically using `fitBounds`.