<br><font size=2 face="sans-serif">Try</font>
<br>
<br><font size=2 face="sans-serif">markers.removeMarker(</font><font size=3>markerName</font><font size=2 face="sans-serif">);</font>
<p><font size=2 face="sans-serif">steve</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>wrap map <wrapmap@gmail.com>@openlayers.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : users-bounces@openlayers.org</font>
<p><font size=1 face="sans-serif">18/03/2009 10:05 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">users@openlayers.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">[OpenLayers-Users] how to remove selected
marker</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><font size=3>hey all,<br>
<br>
function CreateNewMarker() {<br>
markerName = document.getElementById("markerName").value;<br>
if (document.getElementById("markerName").value.length
== 0) <br>
alert("You cannot leave markername empty");<br>
else {<br>
markers = new OpenLayers.Layer.Markers(markerName);<br>
map.addLayer(markers);<br>
add();<br>
<br>
}<br>
}<br>
<br>
now i want to remove marker that i added as the definite layer, i tried
to make layer delete but that is not working for me.<br>
<br>
i tired as:<br>
<br>
markerName.removeLayer()<br>
<br>
or how can i remove selected layer which i can get the name from text box
and delete them<br>
<br>
</font><tt><font size=2>_______________________________________________<br>
Users mailing list<br>
Users@openlayers.org<br>
http://openlayers.org/mailman/listinfo/users<br>
</font></tt>
<br>
<br>
<br>