I think ive run into this issue here:

http://code.google.com/p/gmaps-api-issues/issues/detail?id=855


If you click on a custom overlay extended from overlay base, a
MapMouseEvent.CLICK event is fired from the map, but not the overlay
itself. In the map event there is no info to identify the overlay.

What i need to do is to be able to select a custom overlay, then
deselect it by clicking the map. I can achieve this by putting a flash
Mouse.CLICK event on the overlay. But the MapMouseEvent.CLICK event
still fires (as expected) on the map. As i have to use this event to
deselect everything i end up with both events firing, the order of the
events means things getting deselected then selected, which is ok, but
not ideal.

is it just luck that this event ordering is happening, or is that
fixed?

Is there a way i can put a click handler on to the map that does not
trigger the same as the MapMouseEvent.CLICK event. such as on the
tiles themselves for the deselect?

or just have an event on the overlay that does not trigger the
MapMouseEvent.CLICK event on the map?

This behaviour does not happen with a marker, as only the
MapMouseEvent.CLICK event is fired on the marker, not the map as well;
but i need to use the overlay base for what the overlay needs to do.




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

Reply via email to