From 2dffc93e43b4af6d612036747a8a9863fc9df188 Mon Sep 17 00:00:00 2001 From: Johann Levesque Date: Wed, 17 Jul 2024 14:08:19 -0400 Subject: [PATCH 1/5] feat-fix(layers-event): Add getGeoJSON for vector layer, patch timing issue with geoCoreLayer, add layerError event, add global layerVisibility event Closes #2338, #2376 --- .../public/configs/OSDP/function-event.json | 15 ++ .../templates/demos/demo-function-event.html | 22 ++- .../geoview-core/src/api/config/config-api.ts | 2 +- .../map-event-processor.ts | 40 +---- packages/geoview-core/src/app.tsx | 25 +-- .../geoview-layers/abstract-geoview-layers.ts | 3 +- .../vector/abstract-geoview-vector.ts | 19 +++ .../geo/layer/gv-layers/abstract-gv-layer.ts | 3 +- .../gv-layers/vector/abstract-gv-vector.ts | 20 +++ packages/geoview-core/src/geo/layer/layer.ts | 142 +++++++++++++++++- 10 files changed, 236 insertions(+), 55 deletions(-) diff --git a/packages/geoview-core/public/configs/OSDP/function-event.json b/packages/geoview-core/public/configs/OSDP/function-event.json index a9f777e6daf..0f2f86c1f19 100644 --- a/packages/geoview-core/public/configs/OSDP/function-event.json +++ b/packages/geoview-core/public/configs/OSDP/function-event.json @@ -10,6 +10,10 @@ "labeled": true }, "listOfGeoviewLayerConfig": [ + { + "geoviewLayerType": "geoCore", + "geoviewLayerId": "f4c51eaa-a6ca-48b9-a1fc-b0651da20509" + }, { "geoviewLayerId": "airborne_radioactivity", "geoviewLayerName": { @@ -25,6 +29,17 @@ } ] }, + { + "geoviewLayerId": "errorId", + "geoviewLayerName": { "en": "uniqerrorLayerueValue" }, + "metadataAccessPath": { "en": "https://maps-cartes.ec.gc.ca/arcgis/rest/services/CESI/MapServer1/" }, + "geoviewLayerType": "esriFeature", + "listOfLayerEntryConfig": [ + { + "layerId": "1" + } + ] + }, { "geoviewLayerId": "uniqueValueId", "geoviewLayerName": { "en": "uniqueValue" }, diff --git a/packages/geoview-core/public/templates/demos/demo-function-event.html b/packages/geoview-core/public/templates/demos/demo-function-event.html index 0f8be9facb0..9e1a84a19ee 100644 --- a/packages/geoview-core/public/templates/demos/demo-function-event.html +++ b/packages/geoview-core/public/templates/demos/demo-function-event.html @@ -178,7 +178,7 @@

Events that will generate notifications: