I found a way. I used the markers layer and then used markers function to get all the existing markers and then used removeMarker. I actually wants to remove all the existing markers before adding a new one. So, clearMarkers() does that even without going for markers().
Cheers, Kalyan On Mon, Aug 16, 2010 at 1:48 PM, Kalyan Kamepalli < kalyan.kamepa...@gmail.com> wrote: > Hello group, > > I am trying to get a list of markers from my map. I used something like > OpenLayers.Layer.Markers.markers and that returned nothing.But, I have > almost 5 markers on my map. Is there any other way to get list of markers ?? > Also, is it possible to delete individual markers from my marker layer ?? > > > Thanks, > Kalyan > > > >
_______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users