chore: explicitely add geojson extension when downloading a layer

This was added by the browser I think, but let's be explicit, just
in case.
This commit is contained in:
Yohan Boniface 2024-10-21 16:38:08 +02:00
parent 0d5b488f93
commit e0e7e0961c

View file

@ -802,7 +802,7 @@ export class DataLayer {
this
)
if (this.umap_id) {
const filename = Utils.slugify(this.options.name)
const filename = `${Utils.slugify(this.options.name)}.geojson`
const download = Utils.loadTemplate(`
<a class="button" href="${this._dataUrl()}" download="${filename}">
<i class="icon icon-24 icon-download"></i>${translate('Download')}