mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
Fix Markers GeoJSON export (#1248)
* Fix the retrieval of the marker node on GeoJSON export * Versioning update
This commit is contained in:
parent
f73a8906ce
commit
9a16e06223
3 changed files with 3 additions and 3 deletions
|
|
@ -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};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue