Skip to content

Commit

Permalink
Merge pull request #903 from descarteslabs/fix-loading-spinner
Browse files Browse the repository at this point in the history
Stop layer loading spinner when layer is removed
  • Loading branch information
martinRenou authored Dec 13, 2021
2 parents 49a5559 + 59ef251 commit 372a37a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/src/layers/TileLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ export class LeafletTileLayerView extends rasterlayer.LeafletRasterLayerView {
this.spinner.stop();
}
});
this.obj.on("remove", event => {
if (this.model.get('show_loading')) {
this.spinner.stop();
}
})
}

model_events() {
Expand Down

0 comments on commit 372a37a

Please sign in to comment.