Hi Aaron-
Short answer is no. What's the use case?

Could you use DRAG_START and DRAG_END events to detect the user moving the
map?

As for clearing overlays, it might be better for you to just push all your
overlays into an array, and call removeOverlay() on each overlay. Then you
wouldn't have to worry about the infowindow ever closing programmatically.

We don't fire an event for when the infowindow button is clicked by the
user, so if you do really need to know that, the best option now is to
create a custom infowindow with your own close button, and detect the event
yourself.

You can file feature requests here:
http://code.google.com/p/gmaps-api-issues/issues/entry?template=Flash%20API%20-%20Feature%20Request

- pamela

On Fri, Jul 17, 2009 at 2:49 AM, Aaron Donohue <[email protected]>wrote:

>
> Under MapEvent in the API Reference Documentation (http://
> code.google.com/apis/maps/documentation/flash/reference.html#MapEvent)
> it states, "A MapEvent object is dispatched into the event flow
> whenever map-specific events occur. Map events may be dispatched by
> the map object itself or its elements (i.e. overlays/infowindows etc).
> "
>
> The question I have is, is there a way of distinguishing between a
> MapMoveEvent.MOVE_END that originates from the map object itself and a
> MapMoveEvent.MOVE_END that originates from its elements (in my case an
> infowindow)? Or another way to state the same question that may be
> more simple to understand, is there a way to distinguish between a
> user initiated move event and a map element(infowindow opening)
> initiated move event?
>
> Another question that falls nearly into the same category...I
> unfortunately have to make a call to map.clearOverlays() sometimes
> while an infowindow is open.  Obviously the result is that the method
> call closes the infowindow (infowindow_closed event is executed).  Is
> there a way of identifying what initiated the close event...the user
> or a programmatic call to map.clearoverlays()?
>
>
> >
>

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