I recommend using map.removeOverlay(overlayInstance) for removing
markers, polys, etc.

For removing a batch of markers, just push them onto an array, then
later iterate through that array and call removeOverlay() on each
marker.

- pamela

On Fri, Jan 30, 2009 at 8:12 AM, Oscar.Flash.Developer
<[email protected]> wrote:
>
> Found this in Pamela's Penguin Direction demo, it may be of use for
> you too:
> ...
>  // Remove everything from map and add back the markers and polyline
>  map.clearOverlays();
> ...
>
> Using that method you could clear the map, and then proceed as I
> suggested earlier.
>
> >
>

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