Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-azma committed Feb 21, 2024
1 parent 4dbb239 commit 75c9bb3
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 30 deletions.
38 changes: 19 additions & 19 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.

2 changes: 1 addition & 1 deletion configs/sample-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
},
"externalPackages": [],
"serviceUrls": {
"keys": "https://geocore.api.geo.ca"
"geocoreUrl": "https://geocore.api.geo.ca"
},
"suportedLanguages": ["en", "fr"],
"version": "1.0"
Expand Down
2 changes: 1 addition & 1 deletion corePackages/geoview-basemap-panel.js

Large diffs are not rendered by default.

Binary file modified corePackages/geoview-basemap-panel.js.br
Binary file not shown.
6 changes: 3 additions & 3 deletions corePackages/geoview-geochart.js

Large diffs are not rendered by default.

Binary file modified corePackages/geoview-geochart.js.br
Binary file not shown.
2 changes: 1 addition & 1 deletion corePackages/geoview-geochart.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion corePackages/geoview-layers-panel.js

Large diffs are not rendered by default.

Binary file modified corePackages/geoview-layers-panel.js.br
Binary file not shown.
2 changes: 1 addition & 1 deletion corePackages/geoview-swiper.js

Large diffs are not rendered by default.

Binary file modified corePackages/geoview-swiper.js.br
Binary file not shown.
2 changes: 1 addition & 1 deletion corePackages/geoview-time-slider.js

Large diffs are not rendered by default.

Binary file modified corePackages/geoview-time-slider.js.br
Binary file not shown.
10 changes: 9 additions & 1 deletion raw-add-layers.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,15 @@
}
},
'suportedLanguages': ['en']
}"></div><h4>Add Layer Examples</h4><div style="font-size: smaller"><div>ESRI Feature Service Layer<ul><li class="source-link">https://maps-cartes.ec.gc.ca/arcgis/rest/services/DMS/DEU_CSO_Volume/MapServer/8</li></ul></div><div>ESRI Dynamic Service Layer<ul><li class="source-link">https://maps-cartes.services.geo.ca/server_serveur/rest/services/NRCan/historical_flood_event_en/MapServer</li><li class="source-link">https://maps-cartes.services.geo.ca/server_serveur/rest/services/NRCan/forest_industry_hotspots_en/MapServer</li></ul></div><div>ESRI Image Layer<ul><li class="source-link">https://www5.agr.gc.ca/atlas/rest/services/app_agclimate_agclimat/agclimate_tx/ImageServer/</li></ul></div><div>WMS Layer<ul><li class="source-link">https://ows.mundialis.de/services/service</li></ul></div><div>WFS Layer<ul><li class="source-link">https://giswebservices.massgis.state.ma.us/geoserver/wfs</li><li>Select 'Aiports' layer</li></ul></div><div>XYZ Layer<ul><li class="source-link">https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}</li></ul></div><div>GeoJson Layer<ul><li class="source-link">https://canadian-geospatial-platform.github.io/geoview/public/datasets/geojson/polygons.json</li><li class="source-link">https://canadian-geospatial-platform.github.io/geoview/public/datasets/geojson/lines.json</li><li class="source-link">https://canadian-geospatial-platform.github.io/geoview/public/datasets/geojson/points.json</li></ul></div><div>OGC API Feature Layer<ul><li class="source-link">https://b6ryuvakk5.execute-api.us-east-1.amazonaws.com/dev</li><li class="source-link">https://b6ryuvakk5.execute-api.us-east-1.amazonaws.com/dev/collections/lakes</li></ul></div><div>GeoCore UUID Layer<ul><li>ccc75c12-5acc-4a6a-959f-ef6f621147b9</li></ul></div><div>GeoPackage Layer<ul><li class="source-link">https://canadian-geospatial-platform.github.io/geoview/public/datasets/geopackages/rivers.gpkg</li></ul></div><div>CSV Layer<ul><li class="source-link">https://canadian-geospatial-platform.github.io/geoview/public/datasets/csv-files/Station_List_Minus_HQ-MELCC.csv</li></ul></div></div><hr/><button type="button" class="collapsible">Configuration Snippet</button><pre id="mapWMCS" class="panel"></pre><hr/><div class="map-title-holder"><h4 id="HUC2">2. Layer Panel with layers in config</h4><a class="ref-link" href="#top">Top</a></div><div id="mapWM2" class="geoview-map" data-lang="en" data-config-url="./configs/layer-panel-zoom-config.json"></div><pre id="mapWM2CS" class="panel"></pre><script src="codedoc.js"></script><script>document.addEventListener('DOMContentLoaded', function () {
}"></div><h4>Add Layer Examples</h4><div style="font-size: smaller"><div>ESRI Feature Service Layer<ul><li class="source-link">https://maps-cartes.ec.gc.ca/arcgis/rest/services/DMS/DEU_CSO_Volume/MapServer/8</li></ul></div><div>ESRI Dynamic Service Layer<ul><li class="source-link">https://maps-cartes.services.geo.ca/server_serveur/rest/services/NRCan/historical_flood_event_en/MapServer</li><li class="source-link">https://maps-cartes.services.geo.ca/server_serveur/rest/services/NRCan/forest_industry_hotspots_en/MapServer</li></ul></div><div>ESRI Image Layer<ul><li class="source-link">https://www5.agr.gc.ca/atlas/rest/services/app_agclimate_agclimat/agclimate_tx/ImageServer/</li></ul></div><div>WMS Layer<ul><li class="source-link">https://ows.mundialis.de/services/service</li></ul></div><div>WFS Layer<ul><li class="source-link">https://giswebservices.massgis.state.ma.us/geoserver/wfs</li><li>Select 'Aiports' layer</li></ul></div><div>XYZ Layer<ul><li class="source-link">https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}</li></ul></div><div>GeoJson Layer<ul><li class="source-link">https://canadian-geospatial-platform.github.io/geoview/public/datasets/geojson/polygons.json</li><li class="source-link">https://canadian-geospatial-platform.github.io/geoview/public/datasets/geojson/lines.json</li><li class="source-link">https://canadian-geospatial-platform.github.io/geoview/public/datasets/geojson/points.json</li></ul></div><div>OGC API Feature Layer<ul><li class="source-link">https://b6ryuvakk5.execute-api.us-east-1.amazonaws.com/dev</li><li class="source-link">https://b6ryuvakk5.execute-api.us-east-1.amazonaws.com/dev/collections/lakes</li></ul></div><div style="margin-bottom:20px;"><div>GeoCore UUID Layer</div><div style="margin-top:10px; margin-left:20px;"><input id="selectGeoCore" list="geocoreids" style="width:300px;"><datalist id="geocoreids"><option value="21b821cf-0f1c-40ee-8925-eab12d357668"></option><option value="ccc75c12-5acc-4a6a-959f-ef6f621147b9"></option><option value="0fca08b5-e9d0-414b-a3c4-092ff9c5e326"></option><option value="03ccfb5c-a06e-43e3-80fd-09d4f8f69703"></option><option value="ea4c0bdb-a63f-49a4-b14a-09c1560aad0b"></option><option value="0fe65119-e96e-4a57-8bfe-9d9245fba06b"></option></datalist><button type="button" onclick="addGeocore()">Add layer</button></div></div><div>GeoPackage Layer<ul><li class="source-link">https://canadian-geospatial-platform.github.io/geoview/public/datasets/geopackages/rivers.gpkg</li></ul></div><div>CSV Layer<ul><li class="source-link">https://canadian-geospatial-platform.github.io/geoview/public/datasets/csv-files/Station_List_Minus_HQ-MELCC.csv</li></ul></div></div><hr/><button type="button" class="collapsible">Configuration Snippet</button><pre id="mapWMCS" class="panel"></pre><hr/><div class="map-title-holder"><h4 id="HUC2">2. Layer Panel with layers in config</h4><a class="ref-link" href="#top">Top</a></div><div id="mapWM2" class="geoview-map" data-lang="en" data-config-url="./configs/layer-panel-zoom-config.json"></div><pre id="mapWM2CS" class="panel"></pre><script src="codedoc.js"></script><script>function addGeocore() {
// Precond
if (!document.getElementById('selectGeoCore').value) return;

// Add the layer on the map
cgpv.api.maps['mapWM'].layer.addGeoviewLayerByGeoCoreUUID(document.getElementById('selectGeoCore').value);
}

document.addEventListener('DOMContentLoaded', function () {
var sourceLinks = document.querySelectorAll('li.source-link');

sourceLinks.forEach(function (link) {
Expand Down
Binary file added raw-add-layers.html.br
Binary file not shown.

0 comments on commit 75c9bb3

Please sign in to comment.