diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index f48c34e4..76ca83df 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -663,7 +663,7 @@ L.U.DataLayer.include({ L.U.DataLayer.addInitHook(function () { this.on('hide', this.propagateHide) this.on('show', this.propagateShow) - this.propagateShow() + if (this.isVisible()) this.propagateShow() }) L.U.Map.include({