I have created some markers by using the following code:
var markers = new OpenLayers.Layer.Markers(“mymakers”);
var myLonLat = getMyLonLat(i);
var marker = new OpenLayers.Marker(myLonLat, markerIcon.clone());
The 10 markers appear on the map correctly. Then how can I get the 10 markers? I have looked through the OpenLayers.Layer.Markers properties, but did not find any method to get the makers added to the layer. I appreciate any of your comments.