Since you can determine the source of zoom_changed events for basically everything BUT the user clicking on the controls by either the fact that you triggered the event yourself (calls to fitBounds) or by the presence of a different event (dblclick on the map), you should be able to get this by the process of elimination. It won't be straightforward though and will probably require the use of setTimeout to compensate for the order in which these events happen.
Chad Killingsworth On Jun 25, 7:51 am, spiderplant0 <[email protected]> wrote: > The 'zoom_changed' event fires both when a user clicks on the zoom- > control and when the zoom setting changes as a result of an API call - > such as .fitBounds(). > (In fact 'zoom_changed' fires for any fitBounds() call even if the > zoom scale did not actually change) > I need to be alerted to a change in view-port only when it has been > caused by the user directly operating the map controls on the GUI. Is > there a way to do this? > (I thought of using the click event to detect user activity - but this > doesnt activate for the zoom control.) > Thanks -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
