Skip to content

Commit

Permalink
refactor: remove dataAccessPath from initial layer configs
Browse files Browse the repository at this point in the history
Closes #2537
  • Loading branch information
DamonU2 committed Nov 13, 2024
1 parent a03c902 commit 432620e
Show file tree
Hide file tree
Showing 62 changed files with 7,323 additions and 4,119 deletions.
10,084 changes: 6,805 additions & 3,279 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions docs/app/geoview-layer/add-layer-type.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,6 @@ Add the TypeSourceImageStaticInitialConfig section. This the expected configurat
"additionalProperties": false,
"type": "object",
"properties": {
"dataAccessPath": {
"type": "string",
"description": "The path to reach the data to display. If not specified, metadatAccessPath will be assigne to it."
},
"crossOrigin": {
"type": "string",
"description": "The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer."
Expand Down
2 changes: 1 addition & 1 deletion packages/geoview-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"serve": "npm run format && npm run fix && webpack serve --progress --color --config webpack.dev.js",
"build": "npm run format && npm run fix && npm run doc && webpack --progress --color --config webpack.prod.js && npm run generate.d.ts",
"doc": "typedoc src/app.tsx --logLevel Error --out public/docs",
"deploy": "gh-pages -d dist",
"deploy": "gh-pages -d dist -test",
"test": "jest",
"update_test": "jest --updateSnapshot",
"format": "npm run format --prefix ../",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
{
"geoviewLayerId": "geojsonLYR1",
"geoviewLayerName": "GeoJSON Sample",
"metadataAccessPath": "./datasets/geojson/metadata.json",
"metadataAccessPath": "./datasets/geojson/metadata.meta",
"geoviewLayerType": "GeoJSON",
"listOfLayerEntryConfig": [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/geoview-core/public/configs/my-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{
"geoviewLayerId": "geojsonLYR4",
"geoviewLayerName": "GeoJSON Line",
"metadataAccessPath": "./datasets/geojson/metadata.json",
"metadataAccessPath": "./datasets/geojson/metadata.meta",
"geoviewLayerType": "GeoJSON",
"listOfLayerEntryConfig": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"geoviewLayerId": "geojsonLYR1",
"geoviewLayerName": "GeoJSON Sample",
"metadataAccessPath": "./datasets/geojson/metadata.json",
"metadataAccessPath": "./datasets/geojson/metadata.meta",
"geoviewLayerType": "GeoJSON",
"listOfLayerEntryConfig": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
{
"geoviewLayerId": "geojsonLYR1",
"geoviewLayerName": "GeoJSON Sample",
"metadataAccessPath": "./datasets/geojson/metadata.json",
"metadataAccessPath": "./datasets/geojson/metadata.meta",
"geoviewLayerType": "GeoJSON",
"listOfLayerEntryConfig": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
{
"geoviewLayerId": "geojsonLYR1",
"geoviewLayerName": "GeoJSON Sample",
"metadataAccessPath": "./datasets/geojson/metadata.json",
"metadataAccessPath": "./datasets/geojson/metadata.meta",
"geoviewLayerType": "GeoJSON",
"listOfLayerEntryConfig": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
{
"geoviewLayerId": "geojsonLYR5",
"geoviewLayerName": "GeoJSON Sample",
"metadataAccessPath": "./datasets/geojson/metadata.json",
"metadataAccessPath": "./datasets/geojson/metadata.meta",
"geoviewLayerType": "GeoJSON",
"listOfLayerEntryConfig": [
{
Expand Down
31 changes: 12 additions & 19 deletions packages/geoview-core/public/configs/navigator/13-all-layers.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"geoviewLayerId": "geojsonLYR1",
"geoviewLayerName": "GeoJSON Sample",
"metadataAccessPath": "./datasets/geojson/metadata.json",
"metadataAccessPath": "./datasets/geojson/metadata.meta",
"geoviewLayerType": "GeoJSON",
"listOfLayerEntryConfig": [
{
Expand Down Expand Up @@ -45,13 +45,13 @@
{
"geoviewLayerId": "csvLYR1",
"geoviewLayerName": "NPRI",
"metadataAccessPath": "./datasets/csv-files/",
"geoviewLayerType": "CSV",
"listOfLayerEntryConfig": [
{
"layerId": "NPRI-INRP_WaterEau_MediaGroupMilieu_2022",
"layerId": "NPRI-INRP_WaterEau_MediaGroupMilieu_2022.csv",
"layerName": "NPRI Water Media Group 2022",
"source": {
"dataAccessPath": "./datasets/csv-files/NPRI-INRP_WaterEau_MediaGroupMilieu_2022.csv",
"separator": ","
}
}
Expand Down Expand Up @@ -111,13 +111,13 @@
{
"geoviewLayerId": "staticLYR10",
"geoviewLayerName": "Static Image",
"metadataAccessPath": "https://datacube-prod-data-public.s3.ca-central-1.amazonaws.com/store/imagery/aerial/napl/napl-ring-of-fire/",
"geoviewLayerType": "imageStatic",
"listOfLayerEntryConfig": [
{
"layerId": "thumbnail",
"layerId": "napl-ring-of-fire-1954-08-07-60k-thumbnail.png",
"layerName": "Static Image",
"source": {
"dataAccessPath": "https://datacube-prod-data-public.s3.ca-central-1.amazonaws.com/store/imagery/aerial/napl/napl-ring-of-fire/napl-ring-of-fire-1954-08-07-60k-thumbnail.png",
"extent": [-87.77486341686723, 51.62285357468582, -84.57727128084842, 53.833354975551075],
"projection": 4326
}
Expand Down Expand Up @@ -165,29 +165,25 @@
{
"geoviewLayerId": "GeoPackageLYR1",
"geoviewLayerName": "Natural Earth",
"metadataAccessPath": "./datasets/geopackages/",
"geoviewLayerType": "GeoPackage",
"listOfLayerEntryConfig": [
{
"layerId": "Natural_Earth_QGIS_layers_and_styles.gpkg",
"layerName": "Natural Earth",
"source": {
"dataAccessPath": "./datasets/geopackages"
}
"layerName": "Natural Earth"
}
]
},
{
"geoviewLayerId": "xyzTilesLYR1",
"geoviewLayerName": "World_Topo_Map",
"metadataAccessPath": "https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/",
"geoviewLayerType": "xyzTiles",
"listOfLayerEntryConfig": [
{
"layerId": "topo",
"layerId": "0",
"layerName": "World Topo Map",
"initialSettings": { "minZoom": 3, "maxZoom": 8 },
"source": {
"dataAccessPath": "https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}"
}
"initialSettings": { "minZoom": 3, "maxZoom": 8 }
}
]
},
Expand All @@ -198,12 +194,9 @@
"metadataAccessPath": "https://tiles.arcgis.com/tiles/HsjBaDykC1mjhXz9/arcgis/rest/services/CBMT_CBCT_3978_V_OSM/VectorTileServer/",
"listOfLayerEntryConfig": [
{
"layerId": "toner",
"layerId": "CBMT_CBCT_3978_V_OSM",
"layerName": "Tile basemap",
"initialSettings": { "minZoom": 3, "maxZoom": 18 },
"source": {
"dataAccessPath": "https://tiles.arcgis.com/tiles/HsjBaDykC1mjhXz9/arcgis/rest/services/CBMT_CBCT_3978_V_OSM/VectorTileServer/tile/{z}/{y}/{x}.pbf"
}
"initialSettings": { "minZoom": 3, "maxZoom": 18 }
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@
{
"geoviewLayerId": "xyzTilesLYR1",
"geoviewLayerName": "World_Topo_Map",
"metadataAccessPath": "https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/",
"geoviewLayerType": "xyzTiles",
"listOfLayerEntryConfig": [
{
"layerId": "topo",
"layerId": "0",
"layerName": "World Topo Map",
"initialSettings": { "minZoom": 3, "maxZoom": 8 },
"source": {
"dataAccessPath": "https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}"
}
"initialSettings": { "minZoom": 3, "maxZoom": 8 }
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@
"listOfLayerEntryConfig": [
{
"layerId": "0",
"layerName": "Cities",
"source": {
"dataAccessPath": "https://sampleserver6.arcgisonline.com/ArcGIS/rest/services/USA/MapServer"
}
"layerName": "Cities"
},
{
"layerId": "1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"geoviewLayerId": "geojsonLYR1",
"geoviewLayerName": "GeoJSON Sample",
"metadataAccessPath": "./datasets/geojson/metadata.json",
"metadataAccessPath": "./datasets/geojson/metadata.meta",
"geoviewLayerType": "GeoJSON",
"listOfLayerEntryConfig": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
{
"geoviewLayerId": "staticLYR10",
"geoviewLayerName": "Static Image",
"metadataAccessPath": "https://datacube-prod-data-public.s3.ca-central-1.amazonaws.com/store/imagery/aerial/napl/napl-ring-of-fire/",
"geoviewLayerType": "imageStatic",
"listOfLayerEntryConfig": [
{
"layerId": "thumbnail",
"layerId": "napl-ring-of-fire-1954-08-07-60k-thumbnail.png",
"layerName": "Static Image",
"source": {
"dataAccessPath": "https://datacube-prod-data-public.s3.ca-central-1.amazonaws.com/store/imagery/aerial/napl/napl-ring-of-fire/napl-ring-of-fire-1954-08-07-60k-thumbnail.png",
"extent": [-87.77486341686723, 51.62285357468582, -84.57727128084842, 53.833354975551075],
"projection": 4326
}
Expand Down
10 changes: 4 additions & 6 deletions packages/geoview-core/public/configs/navigator/23-csv.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
{
"geoviewLayerId": "csvLYR1",
"geoviewLayerName": "NPRI",
"metadataAccessPath": "./datasets/csv-files/",
"geoviewLayerType": "CSV",
"listOfLayerEntryConfig": [
{
"layerId": "NPRI-INRP_WaterEau_MediaGroupMilieu_2022",
"layerName": "NPRI Water Media Group 2022",
"source": {
"dataAccessPath": "./datasets/csv-files/NPRI-INRP_WaterEau_MediaGroupMilieu_2022.csv",
"separator": ","
}
}
Expand All @@ -28,14 +28,12 @@
{
"geoviewLayerId": "csvLYR2",
"geoviewLayerName": "Station List MELCC",
"metadataAccessPath": "./datasets/csv-files/",
"geoviewLayerType": "CSV",
"listOfLayerEntryConfig": [
{
"layerId": "Station_List_Minus_HQ-MELCC",
"layerName": "Station List",
"source": {
"dataAccessPath": "./datasets/csv-files/Station_List_Minus_HQ-MELCC.csv"
}
"layerId": "Station_List_Minus_HQ-MELCC.csv",
"layerName": "Station List"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@
"metadataAccessPath": "https://tiles.arcgis.com/tiles/HsjBaDykC1mjhXz9/arcgis/rest/services/CBMT_CBCT_3978_V_OSM/VectorTileServer/",
"listOfLayerEntryConfig": [
{
"layerId": "toner",
"initialSettings": { "minZoom": 3, "maxZoom": 18 },
"source": {
"dataAccessPath": "https://tiles.arcgis.com/tiles/HsjBaDykC1mjhXz9/arcgis/rest/services/CBMT_CBCT_3978_V_OSM/VectorTileServer/tile/{z}/{y}/{x}.pbf"
}
"layerId": "CBMT_CBCT_3978_V_OSM",
"initialSettings": { "minZoom": 3, "maxZoom": 18 }
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"geoviewLayerId": "geojsonLYR1",
"geoviewLayerName": "GeoJSON Sample",
"metadataAccessPath": "./datasets/geojson/metadata1.json",
"metadataAccessPath": "./datasets/geojson/metadata1.meta",
"geoviewLayerType": "GeoJSON",
"listOfLayerEntryConfig": [
{
Expand All @@ -25,7 +25,7 @@
{
"geoviewLayerId": "geojsonLYR2",
"geoviewLayerName": "MultiPolygon Sample",
"metadataAccessPath": "./datasets/geojson/metadata.json",
"metadataAccessPath": "./datasets/geojson/metadata.meta",
"geoviewLayerType": "GeoJSON",
"listOfLayerEntryConfig": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"orientation": "vertical",
"keyboardOffset": 10,
"layers": [
"swipe0/toner",
"swipe0/0",
"swipe1/msi-94-or-more",
"swipe4/polygons.json",
"swipe5/ec-msc:CURRENT_CONDITIONS",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{
"geoviewLayerId": "swipe4",
"geoviewLayerName": "GeoJSON Sample",
"metadataAccessPath": "./datasets/geojson/metadata.json",
"metadataAccessPath": "./datasets/geojson/metadata.meta",
"geoviewLayerType": "GeoJSON",
"listOfLayerEntryConfig": [
{
Expand Down Expand Up @@ -75,16 +75,14 @@
{
"geoviewLayerId": "swipe0",
"geoviewLayerName": "statmen toner",
"metadataAccessPath": "https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/",
"geoviewLayerType": "xyzTiles",
"listOfLayerEntryConfig": [
{
"layerId": "toner",
"layerId": "0",
"initialSettings": {
"minZoom": 3,
"maxZoom": 8
},
"source": {
"dataAccessPath": "https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"layerId": "execution",
"layerName": "Downstream Analysis",
"source": {
"dataAccessPath": "https://app.chn-rhc.geogc.ca/api/processes/downstream-analysis/execution",
"postSettings": {
"header": {
"accept": "application/json",
Expand Down
Loading

0 comments on commit 432620e

Please sign in to comment.