The use case is this...
I have a method that retrieves objects that are located within the
bounds of the viewport.  This method is called automatically every
time the map is moved (listening to event).  To refresh the map with
the new objects that were retrieved, I am first calling clearOverlays
and then drawing all the new objects.  Up to now, the only time the
move event was triggered was when the user moved the map.  I didn't
have any map elements that would trigger a mapmove event.  I am in the
midst of adding the ability to open infowindows which will move the
map, get new objects, and then call clearOverlays, before drawing the
objects.  I was adding logic to just reopen infowindows if they were
closed during this process bc of the clearOverlays call. I could not
distinguish between whether the user had initiated the close by
hitting the close button or whether the move event was being triggered
programmatically bc of the infowindow opening and therefore was being
closed bc of the call the clearOverlays.

I hope I wrote that clearly enough for you to understand.  Let me
know.

Aaron

On Jul 19, 7:18 am, "pamela (Google Employee)" <[email protected]>
wrote:
> 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...
>
> - 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