Merge pull request #2285 from tsauerwein/vector-source-clear
Export ol.source.Vector.clear()
This commit is contained in:
@@ -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() {
|
ol.source.Vector.prototype.clear = function() {
|
||||||
this.rBush_.forEach(this.removeFeatureInternal, this);
|
this.rBush_.forEach(this.removeFeatureInternal, this);
|
||||||
|
|||||||
Reference in New Issue
Block a user