[OpenLayers-Users] List of Markers

Kalyan Kamepalli kalyan.kamepalli at gmail.com
Mon Aug 16 00:10:24 EDT 2010


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.kamepalli at 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
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100816/787b768e/attachment.html


More information about the Users mailing list