mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
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:
parent
0d5b488f93
commit
e0e7e0961c
1 changed files with 1 additions and 1 deletions
|
@ -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')}
|
||||
|
|
Loading…
Reference in a new issue