fix: fix create marker from search result (#2404)

cf
https://github.com/umap-project/umap/issues/2392#issuecomment-2561151836
This commit is contained in:
Yohan Boniface 2024-12-26 11:02:38 +01:00 committed by GitHub
commit da78ac0919
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()