Okay, I see.
You could just remove only the objects (markers), and then the infowindow
should close only if you've removed its associated marker.

If you really want to know when the user has pressed the drag buttons, you
could just use a custom control in place of the normal pan control, and
trigger events when people click it. There's a demo in the gallery:
http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/PanControlDemo/PanControlDemo.html

You could also file a feature request to have us trigger events for when
users click on the native control (PAN_LEFT, e.g.).

- pamela

On Tue, Jul 21, 2009 at 1:56 AM, Aaron Donohue <[email protected]>wrote:

>
> Oh and I forgot to answer your first question, "Could you use
> DRAG_START and DRAG_END events to detect the user moving the
> map?"  I don't think that would work because the user could still use
> the pan control buttons to move the map which I don't think trigger
> drag_start and drag_end events.
>
> 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