From 63a7ef00ea708af59f76c2c9994703264643a74c Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 4 Jul 2023 15:57:48 +0200 Subject: [PATCH] Allow to open the share form on map load --- umap/static/umap/js/umap.js | 1 + 1 file changed, 1 insertion(+) diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index 451c4255..bf4c19aa 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -254,6 +254,7 @@ L.U.Map.include({ if (this.options.onLoadPanel === 'databrowser') this.openBrowser() else if (this.options.onLoadPanel === 'caption') this.displayCaption() else if (this.options.onLoadPanel === 'datafilters') this.openFilter() + else if (this.options.onLoadPanel === 'share') this.renderShareBox() }) this.onceDataLoaded(function () { const slug = L.Util.queryString('feature')