Fix the retrieval of the marker node on GeoJSON export

This commit is contained in:
Federico Busetti 2025-11-27 23:37:46 +00:00
parent f73a8906ce
commit ae1975fec6
No known key found for this signature in database

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};
});