Skip to content

Commit

Permalink
finalize all layers (#3044)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Apr 30, 2019
1 parent 1222ed1 commit b1cf116
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/core/src/lib/layer-manager.js
Expand Up @@ -109,6 +109,11 @@ export default class LayerManager {
// Method to call when the layer manager is not needed anymore.
// Currently used in the <DeckGL> componentWillUnmount lifecycle to unbind Seer listeners.
finalize() {
// Finalize all layers
for (const layer of this.layers) {
this._finalizeLayer(layer);
}

seer.removeListener(this._initSeer);
seer.removeListener(this._editSeer);
}
Expand Down

0 comments on commit b1cf116

Please sign in to comment.