Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann Levesque authored and Johann Levesque committed Apr 26, 2024
1 parent 7508299 commit 647ee5c
Show file tree
Hide file tree
Showing 70 changed files with 1,570 additions and 67 deletions.
2 changes: 1 addition & 1 deletion add-panels.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
'components': ['overview-map'],
'corePackages': [],
'theme': 'dark',
'theme': 'geo.ca',
'suportedLanguages': ['en']
}"></div><p></p><button type="button" class="collapsible">Code Snippet</button><pre id="codeSnippet" class="panel"></pre><script src="codedoc.js"></script><script>// initialize cgpv and api events, a callback is optional, used if calling api's after the rendering is ready
cgpv.init((mapId) => {
Expand Down
2 changes: 1 addition & 1 deletion api-functions-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
'components': ['overview-map'],
'corePackages': [],
'theme': 'dark',
'theme': 'geo.ca',
'suportedLanguages': ['en']
}"></div><p>These text areas show the metadata value for a ESRI and a WMS layer.</p><button type="button" class="collapsible">ESRI Metadata</button><pre id="esriMetadata" class="panel"></pre><hr/><button type="button" class="collapsible">WMS GetCapabilities</button><pre id="wmsMetadata" class="panel"></pre><hr/><button type="button" class="collapsible">Configuration Snippet</button><pre id="LNG1CS" class="panel"></pre><hr/><button type="button" class="collapsible">Code Snippet</button><pre id="codeSnippet" class="panel"></pre><hr/><button type="button" class="collapsible">Time dimension</button><div id="timeDimension" class="panel" style="margin-top: 10px"><span>URL:</span><input id="time-wms-url" value="https://geo.weather.gc.ca/geomet" style="width: 35%; margin: 10px"/><span>Layer:</span><input id="layer-wms-id" value="RADAR_1KM_RSNO" style="width: 25%; margin: 10px"/> <button id="btn-wms-time" style="margin: 10px">Get WMS dimension</button> <span><ul><li>https://datacube.services.geo.ca/web/aerial.xml halifax, victoria, top-layer</li><li>https://geo.weather.gc.ca/geomet RADAR_1KM_RSNO</li></ul></span><span>URL:</span><input id="time-esri-url" value="https://maps-cartes.services.geo.ca/server_serveur/rest/services/NRCan/historical_flood_event_en/MapServer/" style="width: 35%; margin: 10px"/><span>Layer:</span><input id="layer-esri-id" value="0" style="width: 25%; margin: 10px"/> <button id="btn-esri-time" style="margin: 10px">Get ESRI dimension</button> <span><ul><li>https://maps-cartes.services.geo.ca/server_serveur/rest/services/NRCan/historical_flood_event_en/MapServer/0</li><li>https://gisp.dfo-mpo.gc.ca/arcgis/rest/services/FGP/MSDI_Dynamic_Current_Layer/MapServer/0</li><li>https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/U2/FeatureServer/0</li><li>https://www5.agr.gc.ca/atlas/rest/services/app_agclimate_agclimat/agclimate_tx/ImageServer - no layer, image server</li></ul></span><span>OGC Dimension</span><input id="ogc-dimension" value='{"name":"time","units":"ISO8601","unitSymbol":null,"default":"2022-12-06T12:40:00Z","nearestValue":false,"values":"2022-12-06T09:40:00Z/2022-12-06T12:40:00Z/PT10M"}' style="width: 75%; margin: 10px;"/><button id="btn-dim-time" style="margin: 10px">Get dimension</button> <span><ul><li>{"name":"time","units":"ISO8601","unitSymbol":null,"default":"2022-12-06T12:40:00Z","nearestValue":false,"values":"2022-12-06T09:40:00Z/2022-12-06T12:40:00Z/PT10M"}</li><li>{"name":"time","units":"ISO8601","unitSymbol":null,"default":"1932-07-01T12:00:00Z","nearestValue":false,"values":"1932-07-01T12:00:00Z, 1950-07-01T12:00:00Z"}</li><li>{"name":"time","units":"ISO8601","unitSymbol":null,"default":"1932-07-01T12:00:00Z","nearestValue":false,"values":"1932-07-01T12:00:00Z/1950-07-01T12:00:00Z"}</li><li>{"name":"time","units":"ISO8601","unitSymbol":null,"default":"1932-07-01T12:00:00Z","nearestValue":false,"values":"1932-07-01T12:00:00Z/P80Y"}</li><li>{"name":"time","units":"ISO8601","unitSymbol":null,"default":"1932-07-01T12:00:00Z","nearestValue":false,"values":"1932/1950/P1Y"}</li></ul></span><button id="btn-clear" style="margin: 10px">Clear</button><pre id="time-console"></pre></div><hr/><script src="codedoc.js"></script><script>// initialize cgpv and api events, a callback is optional, used if calling api's after the rendering is ready
cgpv.init((mapId) => {
Expand Down
2 changes: 1 addition & 1 deletion api-loads.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
'components': [],
'corePackages': [],
'theme': 'dark',
'theme': 'geo.ca',
'suportedLanguages': ['en']
}"></div><p>This map will call pygeoapi API to gather the geometry from id provided by URL geoms parameter and load them on the map.</p><p>div configuration: <strong>data-geometry-endpoint</strong> = "https://b6ryuvakk5.execute-api.us-east-1.amazonaws.com/dev/collections/canadian-geospatial-platform/items/"</p><button type="button" class="collapsible">Configuration Snippet</button><pre id="LNG1CS" class="panel"></pre><script src="codedoc.js"></script><script>// initialize cgpv and api events, a callback is optional, used if calling api's after the rendering is ready
cgpv.init((mapId) => {
Expand Down
4 changes: 2 additions & 2 deletions cgpv-main.js

Large diffs are not rendered by default.

Binary file modified cgpv-main.js.br
Binary file not shown.
2 changes: 1 addition & 1 deletion cgpv-main.js.map

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions configs/layer-panel-zoom-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,19 @@
}
]
},
"theme": "dark",
"theme": "geo.ca",
"components": [],
"footerBar": {
"tabs": {
"core": ["legend", "layers", "details"]
"core": [
"legend",
"layers",
"details"
]
}
},
"corePackages": [],
"suportedLanguages": ["en"]
}
"suportedLanguages": [
"en"
]
}
17 changes: 12 additions & 5 deletions configs/loading-packages-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,20 @@
"labeled": true
}
},
"theme": "dark",
"components": ["north-arrow", "overview-map"],
"theme": "geo.ca",
"components": [
"north-arrow",
"overview-map"
],
"corePackages": [],
"appBar": {
"tabs": {
"core": ["basemap-panel"]
"core": [
"basemap-panel"
]
}
},
"suportedLanguages": ["en"]
}
"suportedLanguages": [
"en"
]
}
32 changes: 26 additions & 6 deletions configs/my-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
"fr": "https://services.aadnc-aandc.gc.ca/geomatics/services/Donnees_Ouvertes-Open_Data/Premiere_Nation_First_Nation/MapServer/WMSServer"
},
"geoviewLayerType": "ogcWms",
"listOfLayerEntryConfig": [{ "layerId": "0" }]
"listOfLayerEntryConfig": [
{
"layerId": "0"
}
]
},
{
"geoviewLayerId": "geojsonLYR4",
Expand All @@ -34,7 +38,17 @@
"fr": "./datasets/geojson/metadata.json"
},
"geoviewLayerType": "GeoJSON",
"listOfLayerEntryConfig": [{ "layerId": "points.json" }, { "layerId": "lines.json" }, { "layerId": "polygons.json" }]
"listOfLayerEntryConfig": [
{
"layerId": "points.json"
},
{
"layerId": "lines.json"
},
{
"layerId": "polygons.json"
}
]
},
{
"geoviewLayerId": "wmsLYR7",
Expand All @@ -47,12 +61,18 @@
"fr": "https://geo.weather.gc.ca/geomet"
},
"geoviewLayerType": "ogcWms",
"listOfLayerEntryConfig": [{ "layerId": "RAQDPS-FW.CE_PM2.5-DIFF-YAvg" }]
"listOfLayerEntryConfig": [
{
"layerId": "RAQDPS-FW.CE_PM2.5-DIFF-YAvg"
}
]
}
]
},
"theme": "dark",
"theme": "geo.ca",
"components": [],
"corePackages": [],
"suportedLanguages": ["en"]
}
"suportedLanguages": [
"en"
]
}
30 changes: 30 additions & 0 deletions configs/navigator/01-basemap-LCC-TLS.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"map": {
"interaction": "dynamic",
"viewSettings": {
"projection": 3978,
"maxExtent": [
-125,
30,
-60,
89
]
},
"basemapOptions": {
"basemapId": "transport",
"shaded": true,
"labeled": true
}
},
"components": [
"overview-map"
],
"overviewMap": {
"hideOnZoom": 6
},
"corePackages": [],
"theme": "geo.ca",
"suportedLanguages": [
"en"
]
}
24 changes: 24 additions & 0 deletions configs/navigator/02-basemap-LCC-SL.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"map": {
"interaction": "dynamic",
"viewSettings": {
"projection": 3978
},
"basemapOptions": {
"basemapId": "simple",
"shaded": false,
"labeled": true
}
},
"components": [
"overview-map"
],
"overviewMap": {
"hideOnZoom": 7
},
"corePackages": [],
"theme": "geo.ca",
"suportedLanguages": [
"en"
]
}
30 changes: 30 additions & 0 deletions configs/navigator/03-projection-WM.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"map": {
"interaction": "dynamic",
"viewSettings": {
"initialView": {
"extent": [
-90,
45,
-65,
70
]
},
"projection": 3857
},
"basemapOptions": {
"basemapId": "transport",
"shaded": false,
"labeled": true
}
},
"components": [
"overview-map",
"north-arrow"
],
"corePackages": [],
"theme": "geo.ca",
"suportedLanguages": [
"en"
]
}
24 changes: 24 additions & 0 deletions configs/navigator/04-restrict-zoom.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"map": {
"interaction": "dynamic",
"viewSettings": {
"minZoom": 4,
"maxZoom": 8,
"projection": 3978
},
"basemapOptions": {
"basemapId": "transport",
"shaded": true,
"labeled": true
}
},
"components": [
"overview-map",
"north-arrow"
],
"corePackages": [],
"theme": "geo.ca",
"suportedLanguages": [
"en"
]
}
134 changes: 134 additions & 0 deletions configs/navigator/05-zoom-layer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
{
"map": {
"interaction": "dynamic",
"viewSettings": {
"initialView": {
"layerIds": [
"polygons.json",
"lines.json"
]
},
"projection": 3978
},
"basemapOptions": {
"basemapId": "osm",
"shaded": false,
"labeled": false
},
"highlightColor": "red",
"listOfGeoviewLayerConfig": [
{
"geoviewLayerId": "geojsonLYR1",
"geoviewLayerName": {
"en": "GeoJSON Sample",
"fr": "GeoJSON Échantillon"
},
"metadataAccessPath": {
"en": "./datasets/geojson/metadata.json",
"fr": "./datasets/geojson/metadata.json"
},
"geoviewLayerType": "GeoJSON",
"listOfLayerEntryConfig": [
{
"layerId": "polygons.json",
"layerName": {
"en": "Polygons",
"fr": "Polygones"
}
},
{
"layerId": "lines.json",
"layerName": {
"en": "Lines",
"fr": "Lignes"
}
},
{
"entryType": "group",
"layerId": "point-feature-group",
"layerName": {
"en": "point-feature-group",
"fr": "point-feature-group"
},
"listOfLayerEntryConfig": [
{
"layerId": "icon_points.json",
"layerName": {
"en": "Icons",
"fr": "Icones"
},
"initialSettings": {
"controls": {
"visibility": false
}
}
},
{
"layerId": "points.json",
"layerName": {
"en": "Points",
"fr": "Points"
}
},
{
"layerId": "points_1.json",
"layerName": {
"en": "Points 1",
"fr": "Points 1"
}
},
{
"layerId": "points_2.json",
"layerName": {
"en": "Points 2",
"fr": "Points 2"
}
},
{
"layerId": "points_3.json",
"layerName": {
"en": "Points 3",
"fr": "Points 3"
}
}
]
}
]
}
]
},
"theme": "geo.ca",
"appBar": {
"tabs": {
"core": [
"geolocator",
"export"
]
}
},
"navBar": [
"zoom",
"fullscreen",
"home",
"location"
],
"footerBar": {
"tabs": {
"core": [
"legend",
"layers",
"details",
"data-table"
]
}
},
"components": [
"north-arrow"
],
"corePackages": [],
"externalPackages": [],
"suportedLanguages": [
"en",
"fr"
]
}
Loading

0 comments on commit 647ee5c

Please sign in to comment.