Merge pull request #1272 from umap-project/fix-propagate-show

Only call propagateShow at init if layer is visible
This commit is contained in:
Yohan Boniface 2023-08-22 15:25:07 +02:00 committed by GitHub
commit 1f4a906d88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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({