Fix Markers GeoJSON export (#1248)

* Fix the retrieval of the marker node on GeoJSON export

* Versioning update
This commit is contained in:
Federico Busetti 2025-11-28 12:15:51 +00:00 committed by GitHub
parent f73a8906ce
commit 9a16e06223
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -554,7 +554,7 @@ function saveGeoJsonMarkers() {
const features = pack.markers.map(marker => {
const {i, type, icon, x, y, size, fill, stroke} = marker;
const coordinates = getCoordinates(x, y, 4);
const note = notes.find(note => note.id === id);
const note = notes.find(note => note.id === "marker" + i);
const properties = {id: i, type, icon, x, y, ...note, size, fill, stroke};
return {type: "Feature", geometry: {type: "Point", coordinates}, properties};
});