Maybe there's something wrong, but is necessary show the way how you're creating the markers and getting the id in your code. Do you have a simple case?<br><br><div class="gmail_quote">2011/12/27 Puneet Kishor <span dir="ltr"><<a href="mailto:punk.kish@gmail.com">punk.kish@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On Dec 27, 2011, at 3:02 PM, Cúmar Cueva wrote:<br>
<br>
> I don't remember if by default a maker has an 'id',<br>
<br>
</div>When I create a marker, it gets a programmatically generated id, for example, id="OL_Icon_207"<br>
<div class="im"><br>
> but if you have created<br>
> a maker with a explicit 'id' as:<br>
><br>
> var marker = new OpenLayers.Marker(LatLon, Icon);<br>
> <a href="http://marker.id" target="_blank">marker.id</a> = 'myId001';<br>
><br>
> then, you can get this value using the simple way:<br>
><br>
> <a href="http://marker.id" target="_blank">marker.id</a><br>
<br>
<br>
</div>Using the technique above does nothing. I don't think it sets the DOM id of the marker element.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
><br>
><br>
><br>
> 2011/12/27 Puneet Kishor <<a href="mailto:punk.kish@gmail.com">punk.kish@gmail.com</a>><br>
><br>
>> I am wondering if I can get the id of a marker that I just created.<br>
>> Unfortunately, `<a href="http://marker.id" target="_blank">marker.id</a>` is not a property. Suggestions?<br>
>><br>
>> --<br>
>> Puneet Kishor<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Atte,<br><br>Cúmar Cueva<br>