feat: hidden download button in browser when embedControl=false (#2640)

cf #2629
This commit is contained in:
Yohan Boniface 2025-04-11 17:27:02 +02:00 committed by GitHub
commit 33f407fd60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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