From 3786a767f248f172cc48a071645bbeb7e32c96db Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 4 Jul 2023 15:58:33 +0200 Subject: [PATCH] Allow to open the map in edit mode --- umap/static/umap/js/umap.js | 1 + 1 file changed, 1 insertion(+) diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index bf4c19aa..1b50ba63 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -259,6 +259,7 @@ L.U.Map.include({ this.onceDataLoaded(function () { const slug = L.Util.queryString('feature') if (slug && this.features_index[slug]) this.features_index[slug].view() + if (L.Util.queryString('edit')) this.enableEdit() }) window.onbeforeunload = (e) => {