#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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user