On May 11, 10:08 pm, mp- <[email protected]> wrote:
> When the 'tilesloaded' event fires, does that cause a 'moveend' event
> to then also fire?
>
> I have:
>
> GEvent.addListener(map, 'moveend', function() {
> ...
>
> }

It might. I can't see why it should, though. We do know what a moveend
event listener looks like: perhaps if you could give a link to a
demonstrator -- since you obviously have a page which demonstrates the
problem and we needn't create one afresh -- we could all investigate
what's happening in your case.

> How do I determine what kind of event caused the 'moveend' event to
> fire since: zoom/drag/move all causes a 'moveend' event.

zooming shouldn't move the map -- unless you're using the scroll wheel
to zoom, when the centre may change.

There are dragstart events: in the dragstart listener, set a global
variable (eg mapdragged=true) so that you can test that and reset it
in the moveend event listener. You may also be able to do something
similar with zoomend, if that fires before moveend.

> Is there something like a map.eventFired ? (if that makes sense)

Is it in the documentation? That's always worth referring to.

Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to