diff --git a/src/db/utils/jobs/CragGeojson/index.ts b/src/db/utils/jobs/CragGeojson/index.ts index 24f5f9d..41b5387 100644 --- a/src/db/utils/jobs/CragGeojson/index.ts +++ b/src/db/utils/jobs/CragGeojson/index.ts @@ -27,6 +27,7 @@ async function exportLeafCrags (): Promise { const ancestorArray = ancestors.split(',') const pointFeature = point(doc.metadata.lnglat.coordinates, { + id: metadata.area_id.toUUID().toString(), name: areaName, type: 'crag', content, @@ -122,6 +123,7 @@ async function exportCragGroups (): Promise { for await (const doc of rs) { const polygonFeature = feature(doc.polygon, { type: 'crag-group', + id: doc.uuid.toUUID().toString(), name: doc.name, children: doc.childAreaList.map(({ uuid, name, leftRightIndex }) => ( { id: uuid.toUUID().toString(), name, lr: leftRightIndex }))