From d93a963e1f03592ee02ad3862485d9e4bb1eb75a Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 14 Dec 2023 15:20:59 +0100 Subject: [PATCH] Wait for data to be loaded before opening the data browser We need the map bounds to compute the isOnScreen check --- umap/static/umap/js/umap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index b865a778..f4149bd2 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -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()