Thanks.

On Jun 28, 9:12 pm, Chad Killingsworth
<[email protected]> wrote:
> Here's a starting point for 
> you:http://search.missouristate.edu/map/mobile/zoompancontrol.js
>
> Chad Killingsworth
>
> On Jun 28, 3:04 pm, spiderplant0 <[email protected]> wrote:
>
> > Hi, thanks for the reply Killingsworth.
> > I guess each time I make an API call I would have to store it and when
> > the 'zoom_changed' comes in I would determine if it was the result of
> > an API call by retrieving the stored API call, working out the effects
> > this call would have and compare it to the state of the map after the
> > 'zoom_changed'. But what if the user were to click on the map in the
> > mean time. It all sounds pretty messy.
> > I've just discovered that you can make your own custom controls. I'll
> > check it out, but hopefully I can just replace the google zoom control
> > with my own home made 
> > one...http://code.google.com/apis/maps/documentation/flash/demogallery.html...
>
> > On Jun 27, 1:31 pm, Chad Killingsworth
>
> > <[email protected]> wrote:
> > > 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.

Reply via email to