diff --git a/src/UI/BigComponents/WaySplitMap.svelte b/src/UI/BigComponents/WaySplitMap.svelte index 021e3cdb3..7dc53796c 100644 --- a/src/UI/BigComponents/WaySplitMap.svelte +++ b/src/UI/BigComponents/WaySplitMap.svelte @@ -77,7 +77,7 @@ Feature< Point, { - id: number + id: string index: number dist: number location: number @@ -101,8 +101,8 @@ }) let id = 0 adaptor.lastClickLocation.addCallbackD(({ lon, lat }) => { - let projected: Feature = - GeoOperations.nearestPoint(wayGeojson, [lon, lat]) + let projected: Feature = + GeoOperations.nearestPoint(wayGeojson, [lon, lat]) console.log("Added splitpoint", projected, id) @@ -126,6 +126,7 @@ }, properties: { index: i + 1, + id: "" + id, reuse: "yes", }, } @@ -139,14 +140,14 @@ }, properties: { index: i, + id: "" + id, reuse: "yes", }, } } - projected.properties["id"] = id id++ - splitPoints.data.push(projected) + splitPoints.data.push(projected) splitPoints.ping() })