I want to know when a Google Maps zoom_changed event is fired specifically by a user interaction with the +/- zoom buttons. If I use a general event listener for zoom_changed,
var zoomFlag = "user"; // always assume it's user unless otherwise // some method changing the zoom through API zoomFlag = "api"; map.setZoom(map.getZoom() - 1); zoomFlag = "user"; // google maps event handler zoom_changed: function() { if (zoomFlag === "user") { // user zoom } }