Merge pull request #1272 from umap-project/fix-propagate-show
Only call propagateShow at init if layer is visible
This commit is contained in:
commit
1f4a906d88
1 changed files with 1 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue