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 (#2228)
This was added by the browser I think, but let's be explicit, just in case. cf https://github.com/umap-project/umap/pull/2224#pullrequestreview-2382243375
This commit is contained in:
commit
bda1984f44
1 changed files with 1 additions and 1 deletions
|
@ -812,7 +812,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