Skip to content

Commit

Permalink
Add resetData method
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasstein committed Dec 7, 2023
1 parent bcc2f48 commit 01298ef
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,14 @@ export default GraphicsLayer.createSubclass({
this._reCluster({forceReinit: true});
},

resetData() {
this._predefinedObjectIds = null;
// clear array with calculated clusters
this._clusters = [];
this.initDataStructures(this.sublayers);
this._reCluster({forceReinit: true});
},

setMapWidgetModel(mapWidgetModel) {
this._mapWidgetModel = mapWidgetModel;
},
Expand Down

0 comments on commit 01298ef

Please sign in to comment.