#655: add layer.eraseFeatures.patch() on the "public" side of the API - layer methods should be called instead of layer.renderer methods wherever possible

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3065 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-04-11 15:48:41 +00:00
parent dbac2b1c83
commit b02522ea4c
4 changed files with 60 additions and 20 deletions

View File

@@ -279,6 +279,15 @@ OpenLayers.Layer.Vector.prototype =
this.renderer.drawFeature(feature, style);
},
/**
* Erase features from the layer.
*
* @param {Array(OpenLayers.Feature.Vector)} features
*/
eraseFeatures: function(features) {
this.renderer.eraseFeatures(features);
},
/**
* Given an event, return a feature if the event occurred over one.
* Otherwise, return null.