mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
fix: editing coordinates manually would not be saved
The primary coordinates is a two-elements Array in Point.coordinates, but FormBuilder does not know how to edit an Array, so we edit the `ui._latlngs` instead. The proper fix would have been to teach FormBuilder how to edit an Array, but that path is way longer, and given we plan to refactor it totally, let's wait for that. fix #2144
This commit is contained in:
parent
8ecc231816
commit
051dd90450
1 changed files with 1 additions and 0 deletions
|
@ -655,6 +655,7 @@ export class Point extends Feature {
|
|||
builder.restoreField('ui._latlng.lat')
|
||||
builder.restoreField('ui._latlng.lng')
|
||||
}
|
||||
this.pullGeometry()
|
||||
this.zoomTo({ easing: false })
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue