Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann Levesque authored and Johann Levesque committed May 9, 2024
1 parent 11de349 commit 2cc22ac
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 219 deletions.
207 changes: 0 additions & 207 deletions packages/geoview-core/public/configs/navigator/16-esri-dynamic.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,213 +200,6 @@
"layerId": "0"
}
]
},
{
"geoviewLayerId": "classBreaksId",
"geoviewLayerName": { "en": "classBreaks" },
"metadataAccessPath": { "en": "https://maps-cartes.ec.gc.ca/arcgis/rest/services/DMS/DEU_CSO_Volume/MapServer/" },
"geoviewLayerType": "esriDynamic",
"listOfLayerEntryConfig": [
{
"layerId": "8",
"layerFilter": "Total_CSO_Volume > 5000000",
"style": {
"Point": {
"styleId": "classBreaksId",
"styleType": "classBreaks",
"defaultLabel": "Pas de données de volume / No volume data",
"defaultSettings": {
"symbol": "square",
"type": "simpleSymbol",
"color": "rgba(255,127,127,1)",
"offset": [0, 0],
"rotation": 0,
"size": 2.0010000000000003,
"stroke": {
"color": "rgba(0,0,0,1)",
"lineStyle": "solid",
"width": 0.5
}
},
"defaultVisible": true,
"field": "Total_CSO_Volume",
"classBreakStyleInfo": [
{
"label": "0 m3",
"minValue": 0,
"maxValue": 0,
"visible": true,
"settings": {
"symbol": "circle",
"type": "simpleSymbol",
"color": "rgba(76,230,0,1)",
"offset": [0, 0],
"rotation": 0,
"size": 2.6679999999999997,
"stroke": {
"color": "rgba(0,0,0,1)",
"lineStyle": "solid",
"width": 0.5
}
}
},
{
"label": "0.0001 - ≤ 5,000,000 m3",
"minValue": 0,
"maxValue": 5000000,
"visible": true,
"settings": {
"symbol": "circle",
"type": "simpleSymbol",
"color": "rgba(196,97,255,1)",
"offset": [0, 0],
"rotation": 0,
"size": 5.114407777777778,
"stroke": {
"color": "rgba(0,0,0,1)",
"lineStyle": "solid",
"width": 0.5
}
}
},
{
"label": "> 5,000,000 - ≤ 10,000,000 m3",
"minValue": 5000000,
"maxValue": 10000000,
"visible": true,
"settings": {
"symbol": "circle",
"type": "simpleSymbol",
"color": "rgba(196,97,255,1)",
"offset": [0, 0],
"rotation": 0,
"size": 7.560815555555555,
"stroke": {
"color": "rgba(0,0,0,1)",
"lineStyle": "solid",
"width": 0.5
}
}
},
{
"label": "> 10,000,000 - ≤ 15,000,000 m3",
"minValue": 10000000,
"maxValue": 15000000,
"visible": true,
"settings": {
"symbol": "circle",
"type": "simpleSymbol",
"color": "rgba(196,97,255,1)",
"offset": [0, 0],
"rotation": 0,
"size": 10.007223333333332,
"stroke": {
"color": "rgba(0,0,0,1)",
"lineStyle": "solid",
"width": 0.5
}
}
},
{
"label": "> 15,000,000 - ≤ 20,000,000 m3",
"minValue": 15000000,
"maxValue": 20000000,
"visible": true,
"settings": {
"symbol": "circle",
"type": "simpleSymbol",
"color": "rgba(196,97,255,1)",
"offset": [0, 0],
"rotation": 0,
"size": 12.453631111111111,
"stroke": {
"color": "rgba(0,0,0,1)",
"lineStyle": "solid",
"width": 0.5
}
}
},
{
"label": "> 20,000,000 - ≤ 25,000,000 m3",
"minValue": 20000000,
"maxValue": 25000000,
"visible": true,
"settings": {
"symbol": "circle",
"type": "simpleSymbol",
"color": "rgba(196,97,255,1)",
"offset": [0, 0],
"rotation": 0,
"size": 14.90003888888889,
"stroke": {
"color": "rgba(0,0,0,1)",
"lineStyle": "solid",
"width": 0.5
}
}
},
{
"label": "> 25,000,000 - ≤ 30,000,000 m3",
"minValue": 25000000,
"maxValue": 30000000,
"visible": true,
"settings": {
"symbol": "circle",
"type": "simpleSymbol",
"color": "rgba(196,97,255,1)",
"offset": [0, 0],
"rotation": 0,
"size": 17.346446666666665,
"stroke": {
"color": "rgba(0,0,0,1)",
"lineStyle": "solid",
"width": 0.5
}
}
},
{
"label": "> 30,000,000 - ≤ 35,000,000 m3",
"minValue": 30000000,
"maxValue": 35000000,
"visible": true,
"settings": {
"symbol": "circle",
"type": "simpleSymbol",
"color": "rgba(196,97,255,1)",
"offset": [0, 0],
"rotation": 0,
"size": 19.792854444444444,
"stroke": {
"color": "rgba(0,0,0,1)",
"lineStyle": "solid",
"width": 0.5
}
}
},
{
"label": "> 35,000,000 m3",
"minValue": 35000000,
"maxValue": 999000000,
"visible": true,
"settings": {
"symbol": "circle",
"type": "simpleSymbol",
"color": "rgba(196,97,255,1)",
"offset": [0, 0],
"rotation": 0,
"size": 22.239262222222223,
"stroke": {
"color": "rgba(0,0,0,1)",
"lineStyle": "solid",
"width": 0.5
}
}
}
]
}
}
}
]
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@
}
]
},
{
"geoviewLayerId": "classBreaksId",
"geoviewLayerName": { "en": "classBreaks" },
"metadataAccessPath": { "en": "https://maps-cartes.ec.gc.ca/arcgis/rest/services/DMS/DEU_CSO_Volume/MapServer/" },
"geoviewLayerType": "esriFeature",
"listOfLayerEntryConfig": [
{
"layerId": "8"
}
]
},
{
"geoviewLayerId": "historical-flood",
"geoviewLayerName": { "en": "Historical Flood Events (HFE)" },
Expand Down
2 changes: 1 addition & 1 deletion packages/geoview-core/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ async function renderMap(mapElement: Element): Promise<void> {
// TODO: refactor - remove this config once we get layers from the new one
// create a new config for this map element
const config = new Config();
const configObj = await config.initializeMapConfig(configuration.mapId, configuration!.map!.listOfGeoviewLayerConfig);
const configObj = await config.initializeMapConfig(configuration.mapId, configuration!.map!.listOfGeoviewLayerConfig!);
configuration.map.listOfGeoviewLayerConfig = configObj!;

// if valid config was provided - mapId is now part of config
Expand Down

0 comments on commit 2cc22ac

Please sign in to comment.