From d2150e47ac5a735c240619a2d1c3f4dccc64b1e3 Mon Sep 17 00:00:00 2001 From: Robert Date: Thu, 23 Nov 2023 12:47:37 +0100 Subject: [PATCH] App in stable state --- App/prettier.config.cjs | 7 ++ .../eapa-mapbox/eapa-mapbox-time-2010.json | 73 ++++++++++++ app/pages/index.vue | 112 +++++++++--------- app/server/routes/stac/[...].ts | 4 +- 4 files changed, 140 insertions(+), 56 deletions(-) create mode 100644 App/prettier.config.cjs create mode 100644 STAC/data/current/sub_threat/eapa-mapbox/eapa-mapbox-time-2010.json diff --git a/App/prettier.config.cjs b/App/prettier.config.cjs new file mode 100644 index 000000000..57ac96050 --- /dev/null +++ b/App/prettier.config.cjs @@ -0,0 +1,7 @@ +module.exports = { + semi: false, + singleQuote: true, + arrowParens: 'always', + trailingComma: 'all', + tabWidth: 2, +} diff --git a/STAC/data/current/sub_threat/eapa-mapbox/eapa-mapbox-time-2010.json b/STAC/data/current/sub_threat/eapa-mapbox/eapa-mapbox-time-2010.json new file mode 100644 index 000000000..54a5d144a --- /dev/null +++ b/STAC/data/current/sub_threat/eapa-mapbox/eapa-mapbox-time-2010.json @@ -0,0 +1,73 @@ +{ + "type": "Feature", + "stac_version": "1.0.0", + "id": "eapa-mapbox-time-2010", + "properties": { + "deltares:item_key": "time-2010", + "deltares:paint": { + "fill-color": [ + "interpolate", + ["linear"], + ["get", "time-2010"], + 0, + "rgba(59, 217, 90, 0.3)", + 277.5, + "rgba(245, 188, 66, 0.3)", + 555, + "rgba(217, 59, 59, 0.3)" + ] + }, + "deltares:type": "fill", + "deltares:stations": "locationId", + "deltares:onclick": {}, + "time": 2010, + "datetime": "2023-11-07T13:34:44.212216Z" + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [-180.0, -90.0], + [180.0, -90.0], + [180.0, 90.0], + [-180.0, 90.0], + [-180.0, -90.0] + ] + ] + }, + "links": [ + { + "rel": "collection", + "href": "../collection.json", + "type": "application/json", + "title": "Land Subsidence Threat" + }, + { + "rel": "root", + "href": "../../catalog.json", + "type": "application/json", + "title": "GlobalCoastalAtlas STAC Catalog" + }, + { + "rel": "parent", + "href": "../collection.json", + "type": "application/json", + "title": "Land Subsidence Threat" + } + ], + "assets": { + "mapbox": { + "href": "mapbox://global-data-viewer.Global_TLS_eapa", + "title": "Point locations", + "description": "Mapbox url", + "type": "vector", + "source": "Global_TLS_eapa", + "roles": ["mapbox"] + } + }, + "bbox": [-180, -90, 180, 90], + "stac_extensions": [ + "https://raw.githubusercontent.com/openearth/coclicodata/main/json-schema/schema.json" + ], + "collection": "sub_threat" +} diff --git a/app/pages/index.vue b/app/pages/index.vue index 947978aea..d26aedcff 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -1,47 +1,53 @@