Do not reload on clear(), but on refresh()
This commit is contained in:
@@ -498,7 +498,6 @@ class VectorSource extends Source {
|
||||
if (this.featuresRtree_) {
|
||||
this.featuresRtree_.clear();
|
||||
}
|
||||
this.loadedExtentsRtree_.clear();
|
||||
this.nullGeometryFeatures_ = {};
|
||||
|
||||
const clearEvent = new VectorSourceEvent(VectorEventType.CLEAR);
|
||||
@@ -894,6 +893,15 @@ class VectorSource extends Source {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
refresh() {
|
||||
this.clear(true);
|
||||
this.loadedExtentsRtree_.clear();
|
||||
super.refresh();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Remove an extent from the list of loaded extents.
|
||||
|
||||
Reference in New Issue
Block a user