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) => {