Merge pull request #2285 from tsauerwein/vector-source-clear

Export ol.source.Vector.clear()
This commit is contained in:
Éric Lemoine
2014-07-02 12:10:46 +02:00

View File

@@ -171,7 +171,8 @@ ol.source.Vector.prototype.addFeaturesInternal = function(features) {
/**
* Clear the source
* Remove all features.
* @todo api
*/
ol.source.Vector.prototype.clear = function() {
this.rBush_.forEach(this.removeFeatureInternal, this);