I don't remember if by default a maker has an 'id', but if you have created
a maker with a explicit 'id' as:

    var marker = new OpenLayers.Marker(LatLon, Icon);
    marker.id = 'myId001';

then, you can get this value using the simple way:

   marker.id



2011/12/27 Puneet Kishor <[email protected]>

> I am wondering if I can get the id of a marker that I just created.
> Unfortunately, `marker.id` is not a property. Suggestions?
>
> --
> Puneet Kishor_______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>



-- 
Atte,

Cúmar Cueva
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to