mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 11:52:38 +02:00
fix: fix create marker from search result
cf https://github.com/umap-project/umap/issues/2392#issuecomment-2561151836
This commit is contained in:
parent
52785e22ad
commit
f4cb3509b0
1 changed files with 1 additions and 1 deletions
|
@ -800,7 +800,7 @@ U.Search = L.PhotonSearch.extend({
|
||||||
})
|
})
|
||||||
L.DomEvent.on(edit, 'mousedown', (e) => {
|
L.DomEvent.on(edit, 'mousedown', (e) => {
|
||||||
L.DomEvent.stop(e)
|
L.DomEvent.stop(e)
|
||||||
const datalayer = this.map.defaultEditDataLayer()
|
const datalayer = this.map._umap.defaultEditDataLayer()
|
||||||
const layer = datalayer.makeFeature(feature)
|
const layer = datalayer.makeFeature(feature)
|
||||||
layer.isDirty = true
|
layer.isDirty = true
|
||||||
layer.edit()
|
layer.edit()
|
||||||
|
|
Loading…
Reference in a new issue