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) {