From e0e7e0961c3c9ba520cf52deb9f6754e51c91660 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 21 Oct 2024 16:38:08 +0200 Subject: [PATCH] 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. --- umap/static/umap/js/modules/data/layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/modules/data/layer.js b/umap/static/umap/js/modules/data/layer.js index 795a1f7d..51cb4b94 100644 --- a/umap/static/umap/js/modules/data/layer.js +++ b/umap/static/umap/js/modules/data/layer.js @@ -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(` ${translate('Download')}