On Nov 24, 4:32 am, welshy1984 <[email protected]> wrote: > I wondering if its possible to remove all the markers on a map except > those parsed from the xml file. > > i want to do this to remove custom markers that have replaced > direction markers, but at the same time leave all the markers added by > the xml > > i dont know if this is possible, but if anyone has any ideas that be > great!
As Marcelo would say "Anything is possible". Keep an array of references to the markers you want to remove and iterate through it calling removeOverlay on each one or keep an array of the markers that were added from xml, call map.clearOverlays, then add them back... It will be more efficient to do the first, but it depends on how many there are. -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps API" 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?hl=en.
