On May 11, 10:46 pm, mp- <[email protected]> wrote: > Zooming does cause a 'moveend' event to fire since it changes the > viewable map.
Yes, I've just cooked something up which demonstrates that. I would agree that it's unintuitive, particularly when there exists a separate zoomend event. > This can be confirmed in the documentation at: > http://code.google.com/apis/maps/documentation/reference.html#GMap2.m... > > Which means that 'moveend' essentially is a catch all event that > triggers on nearly ever event that exists. So, you need to counter that if you don't want a moveend triggered with a zoom: var mapzoom; // global GEvent.addListener(map,"moveend",function() { if (mapzoom) { mapzoom=false } else { // Do something on moveend } }); GEvent.addListener(map,"zoomend",function() { mapzoom=true; // Do something else on zoomend, if necessary }); > HENCE, my question about > whether or not there exists a method to inform you what exact event > was just fired. And I reiterate: is it in the documentation? No. So there isn't. [It's true that here *are* undocumented features, which could be useful. But (a) it's never recommended to use them; (b) such a method isn't even an undocumented feature.] 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 -~----------~----~----~----~------~----~------~--~---
