Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

layer-geodata-without-geojson #105

Merged
merged 3 commits into from
Feb 17, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions initial-data-load/src/mapLayers/layersGeoDataUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ const formatLayerGeoData = async (data, country) => {
} else {
logger.info(`Layer ${data.name} has corrupted or missing geojson file.`);
}
} else if (!data.geoDataFilename && !data.geoDataUrl && data.apiUrl && data.collectionName) {
bariela marked this conversation as resolved.
Show resolved Hide resolved
await createGeoDataIndex(data.collectionName);
url = data.apiUrl;
}
const newDataObj = { ...data, geoDataUrl: url, updateDate: Date.now() };
return newDataObj;
Expand Down