Allow to open the share form on map load

This commit is contained in:
Yohan Boniface 2023-07-04 15:57:48 +02:00
parent e1f34e20ff
commit 63a7ef00ea

View file

@ -254,6 +254,7 @@ L.U.Map.include({
if (this.options.onLoadPanel === 'databrowser') this.openBrowser() if (this.options.onLoadPanel === 'databrowser') this.openBrowser()
else if (this.options.onLoadPanel === 'caption') this.displayCaption() else if (this.options.onLoadPanel === 'caption') this.displayCaption()
else if (this.options.onLoadPanel === 'datafilters') this.openFilter() else if (this.options.onLoadPanel === 'datafilters') this.openFilter()
else if (this.options.onLoadPanel === 'share') this.renderShareBox()
}) })
this.onceDataLoaded(function () { this.onceDataLoaded(function () {
const slug = L.Util.queryString('feature') const slug = L.Util.queryString('feature')