Wait for data to be loaded before opening the data browser
We need the map bounds to compute the isOnScreen check
This commit is contained in:
parent
8ce09b039f
commit
d93a963e1f
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ L.U.Map.include({
|
|||
this.renderEditToolbar()
|
||||
}
|
||||
this.initShortcuts()
|
||||
this.onceDatalayersLoaded(function () {
|
||||
this.onceDataLoaded(function () {
|
||||
if (L.Util.queryString('share')) this.renderShareBox()
|
||||
else if (this.options.onLoadPanel === 'databrowser') this.openBrowser()
|
||||
else if (this.options.onLoadPanel === 'caption') this.displayCaption()
|
||||
|
|
Loading…
Reference in a new issue