From f4cb3509b0caa239706733d3ca51cf6a33d20600 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 25 Dec 2024 19:36:36 +0100 Subject: [PATCH] fix: fix create marker from search result cf https://github.com/umap-project/umap/issues/2392#issuecomment-2561151836 --- umap/static/umap/js/umap.controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index f402d81c..b0421ffe 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -800,7 +800,7 @@ U.Search = L.PhotonSearch.extend({ }) L.DomEvent.on(edit, 'mousedown', (e) => { L.DomEvent.stop(e) - const datalayer = this.map.defaultEditDataLayer() + const datalayer = this.map._umap.defaultEditDataLayer() const layer = datalayer.makeFeature(feature) layer.isDirty = true layer.edit()