Hey all!

I was wondering if there was a way to remove points from a map without
actually destroying the layer.

For example, this code removes the points so they are not visible anymore,
but it destroys the layer where the points are stored, so no more points can
be made after the fact.

function removeSelection()
{
        for(i=0;i<highLightedFeature.length;i++)
        {
                select.removeFeatures([highLightedFeature[i].feature]);
        }
        for(i=0;i<highLightedPoint.length;i++)
        {
                select.destroy([highLightedPoint[i].point]);
        }
        highLightPolyCounter = 0;
        highLightPointCounter = 0;
        document.getElementById('nodelist').innerHTML = "Items Removed";
}

(note: highLightedFeature and highLightedPoint are 2 different things
 highLightedFeature = select.addFeatures([event.feature]);
highLightedPoint =
select.addFeatures(highLightedPoint[highLightPointCounter]);)

the removeFeatures doesn't work on points.



I was just wondering if there was some function like removePoints (its not
that... I already tried heh) which would work.

Thanks!

JamSquad
-- 
View this message in context: 
http://n2.nabble.com/Remove-Geometry-Point-from-Map-tp4825323p4825323.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to