[OpenLayers-Users] Remove Geometry Point from Map

JamSquad Jordan_R_Clark at hotmail.com
Tue Mar 30 14:52:10 EDT 2010


Nice, thanks mapmaker.  Now this code works

function removeSelection()
{
	for(i=0;i<highLightedFeature.length;i++)
	{
		select.removeFeatures([highLightedFeature[i].feature]);
	}
		markers.clearMarkers();
	highLightPolyCounter = 0;
	marker = null;
	document.getElementById('nodelist').innerHTML = "Items Removed";
}

function addHighlightPoint(pointx,pointy)
{
	marker = new OpenLayers.Marker(new OpenLayers.LonLat(pointx,pointy));
		markers.addMarker(marker);
}


clearMarkers(); gets rid of all markers on your map.  Thanks again!

JamSquad
-- 
View this message in context: http://n2.nabble.com/Remove-Geometry-Point-from-Map-tp4825323p4826443.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list