Properly clear features in ol.source.ServerVector#clear
This commit is contained in:
committed by
Frederic Junod
parent
1bd522d96f
commit
af05b3d031
@@ -2,6 +2,7 @@
|
||||
|
||||
goog.provide('ol.source.ServerVector');
|
||||
|
||||
goog.require('goog.object');
|
||||
goog.require('ol.extent');
|
||||
goog.require('ol.loadingstrategy');
|
||||
goog.require('ol.source.FormatVector');
|
||||
@@ -79,6 +80,16 @@ ol.source.ServerVector.prototype.addFeaturesInternal = function(features) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.source.ServerVector.prototype.clear = function() {
|
||||
goog.object.clear(this.loadedFeatures_);
|
||||
this.loadedExtents_.clear();
|
||||
goog.base(this, 'clear');
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user