From e53cdcb04ee21fc58870dfc4aec76bc94b17bc75 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 11 Apr 2025 17:14:54 +0200 Subject: [PATCH] feat: hidden download button in browser when embedControl=false cf #2629 Co-authored-by: David Larlet --- umap/static/umap/js/modules/browser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/umap/static/umap/js/modules/browser.js b/umap/static/umap/js/modules/browser.js index 4509ce58..ac2fea86 100644 --- a/umap/static/umap/js/modules/browser.js +++ b/umap/static/umap/js/modules/browser.js @@ -232,6 +232,7 @@ export default class Browser { toggle.addEventListener('click', () => this.toggleLayers()) fitBounds.addEventListener('click', () => this._umap.fitDataBounds()) download.addEventListener('click', () => this.downloadVisible(download)) + download.hidden = this._umap.getProperty('embedControl') === false } downloadVisible(element) {