[OpenLayers-Users] how to remove selected marker
wrap map
wrapmap at gmail.com
Wed Mar 18 10:05:10 EDT 2009
hey all,
function CreateNewMarker() {
markerName = document.getElementById("markerName").value;
if (document.getElementById("markerName").value.length == 0)
alert("You cannot leave markername empty");
else {
markers = new OpenLayers.Layer.Markers(markerName);
map.addLayer(markers);
add();
}
}
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.
i tired as:
markerName.removeLayer()
or how can i remove selected layer which i can get the name from text box
and delete them
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090318/cdbea8f5/attachment.html
More information about the Users
mailing list