Hello,

Is there a way to detect the Pan event was clicked on Google Map?

I am trying to add event when map envelope was change. I used
'moveend' event.
          myEventListener = GEvent.addListener(map, 'moveend', mapEnvChange);
          //myEventListener = GEvent.addListener(map, 'dragend',
mapEnvChange);
          //myEventListener = GEvent.addListener(map, 'zoomend',
mapEnvChange);

But at some conditions, I don't want this event be triggered. For
example, on the bottom of my map, I have a frame (table) to show my
data for markers information. When use click the link for each marker,
I want the map zoom to that marker, but don't want 'moveend' event be
triggered.

        GEvent.removeListener(myEventListener);

But when user clicked Pan/Zoom/Drag, I want this event to be triggered
again and the function for this event will be called.

I can not make this logic works. And I can not find how can I detect
the user clicked the Pan/Zoom/Drag buttons on Google Map.

Can any one help me?

Thank you very much for any of your help.

Cindy


--~--~---------~--~----~------------~-------~--~----~
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