mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 02:01:22 +01:00
Fix the retrieval of the marker node on GeoJSON export
This commit is contained in:
parent
f73a8906ce
commit
ae1975fec6
1 changed files with 1 additions and 1 deletions
|
|
@ -554,7 +554,7 @@ function saveGeoJsonMarkers() {
|
||||||
const features = pack.markers.map(marker => {
|
const features = pack.markers.map(marker => {
|
||||||
const {i, type, icon, x, y, size, fill, stroke} = marker;
|
const {i, type, icon, x, y, size, fill, stroke} = marker;
|
||||||
const coordinates = getCoordinates(x, y, 4);
|
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};
|
const properties = {id: i, type, icon, x, y, ...note, size, fill, stroke};
|
||||||
return {type: "Feature", geometry: {type: "Point", coordinates}, properties};
|
return {type: "Feature", geometry: {type: "Point", coordinates}, properties};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue