-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(30) add ability to save and load a json file
closes(30)
- Loading branch information
Showing
24 changed files
with
11,132 additions
and
407 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// counter.js | ||
// import React from "react"; | ||
(function () { | ||
class counter { | ||
translations = { | ||
en: { | ||
testMessage: "Hello", | ||
}, | ||
fr: { | ||
testMessage: "Bonjour", | ||
}, | ||
}; | ||
} | ||
|
||
|
||
// export this package | ||
window.packages = window.packages || {}; | ||
window.packages.counter = counter; | ||
})(); |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"map":{"basemapOptions":{"id":"transport","shaded":true,"labeled":true},"interaction":"dynamic","viewSettings":{"center":[-106,60],"enableRotation":true,"extent":[2,2,2,2],"projection":3978,"rotation":0,"zoom":12},"extraOptions":{}},"theme":"dark","appBar":{"about":{}},"navBar":["zoom","fullscreen","fullextent"],"components":["app-bar","nav-bar","overview-map","north-arrow"],"corePackages":["basemap-panel","layers-panel","details-panel","geolocator-panel"],"externalPackages":{"keys":"https://geocore.api.geo.ca"},"serviceUrls":{"keys":"https://geocore.api.geo.ca"},"suportedLanguages":["en-CA","fr-CA"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"map": { | ||
"interaction": "static", | ||
"viewSettings": { | ||
"zoom": 4, | ||
"center": [-100, 60], | ||
"projection": 3857 | ||
}, | ||
"basemapOptions": { | ||
"basemapId": "transport", | ||
"shaded": false, | ||
"labeled": true | ||
}, | ||
"listOfGeoviewLayerConfig": [ | ||
|
||
{ | ||
"geoviewLayerId": "esriDynamicLYR2", | ||
"geoviewLayerName": { | ||
"en": "Energy", | ||
"fr": "Energy" | ||
}, | ||
"metadataAccessPath": { | ||
"en": "https://maps-cartes.ec.gc.ca/arcgis/rest/services/CESI/MapServer", | ||
"fr": "https://maps-cartes.ec.gc.ca/arcgis/rest/services/CESI/MapServer" | ||
}, | ||
"geoviewLayerType": "esriDynamic", | ||
"listOfLayerEntryConfig": [{ "layerId": "0" }, { "layerId": "6" }] | ||
} | ||
|
||
] | ||
}, | ||
"theme": "dark", | ||
"components": ["footer-bar"], | ||
"corePackages": [], | ||
"suportedLanguages": ["en"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"map": { | ||
"interaction": "static", | ||
"viewSettings": { | ||
"zoom": 4, | ||
"center": [-100, 60], | ||
"projection": 3857 | ||
}, | ||
"basemapOptions": { | ||
"basemapId": "transport", | ||
"shaded": false, | ||
"labeled": true | ||
}, | ||
"listOfGeoviewLayerConfig": [ | ||
{ | ||
"geoviewLayerId": "wmsLYR1", | ||
"geoviewLayerName": { | ||
"en": "Première Nation / First Nation", | ||
"fr": "Première Nation / First Nation" | ||
}, | ||
"metadataAccessPath": { | ||
"en": "https://services.aadnc-aandc.gc.ca/geomatics/services/Donnees_Ouvertes-Open_Data/Premiere_Nation_First_Nation/MapServer/WMSServer", | ||
"fr": "https://services.aadnc-aandc.gc.ca/geomatics/services/Donnees_Ouvertes-Open_Data/Premiere_Nation_First_Nation/MapServer/WMSServer" | ||
}, | ||
"geoviewLayerType": "ogcWms", | ||
"listOfLayerEntryConfig": [{ "layerId": "0" }] | ||
} | ||
] | ||
}, | ||
"theme": "dark", | ||
"components": ["footer-bar"], | ||
"corePackages": [], | ||
"suportedLanguages": ["en"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"map": { | ||
"interaction": "static", | ||
"viewSettings": { | ||
"zoom": 4, | ||
"center": [-100, 60], | ||
"projection": 3857 | ||
}, | ||
"basemapOptions": { | ||
"basemapId": "transport", | ||
"shaded": false, | ||
"labeled": true | ||
}, | ||
"listOfGeoviewLayerConfig": [ | ||
{ | ||
"geoviewLayerId": "wmsLYR1", | ||
"geoviewLayerName": { | ||
"en": "Première Nation / First Nation", | ||
"fr": "Première Nation / First Nation" | ||
}, | ||
"metadataAccessPath": { | ||
"en": "https://services.aadnc-aandc.gc.ca/geomatics/services/Donnees_Ouvertes-Open_Data/Premiere_Nation_First_Nation/MapServer/WMSServer", | ||
"fr": "https://services.aadnc-aandc.gc.ca/geomatics/services/Donnees_Ouvertes-Open_Data/Premiere_Nation_First_Nation/MapServer/WMSServer" | ||
}, | ||
"geoviewLayerType": "ogcWms", | ||
"listOfLayerEntryConfig": [{ "layerId": "0" }] | ||
}, | ||
{ | ||
"geoviewLayerId": "esriDynamicLYR2", | ||
"geoviewLayerName": { | ||
"en": "Energy", | ||
"fr": "Energy" | ||
}, | ||
"metadataAccessPath": { | ||
"en": "https://maps-cartes.ec.gc.ca/arcgis/rest/services/CESI/MapServer", | ||
"fr": "https://maps-cartes.ec.gc.ca/arcgis/rest/services/CESI/MapServer" | ||
}, | ||
"geoviewLayerType": "esriDynamic", | ||
"listOfLayerEntryConfig": [{ "layerId": "0" }, { "layerId": "6" }] | ||
}, | ||
{ | ||
"geoviewLayerId": "geojsonLYR4", | ||
"geoviewLayerName": { | ||
"en": "GeoJSON Line", | ||
"fr": "GeoJSON Line" | ||
}, | ||
"metadataAccessPath": { | ||
"en": "./geojson/metadata.json", | ||
"fr": "./geojson/metadata.json" | ||
}, | ||
"geoviewLayerType": "GeoJSON", | ||
"listOfLayerEntryConfig": [{ "layerId": "points.json" }, { "layerId": "lines.json" }, { "layerId": "polygons.json" }] | ||
}, | ||
{ | ||
"geoviewLayerId": "wmsLYR7", | ||
"geoviewLayerName": { | ||
"en": "Geomet", | ||
"fr": "Geomet" | ||
}, | ||
"metadataAccessPath": { | ||
"en": "https://geo.weather.gc.ca/geomet", | ||
"fr": "https://geo.weather.gc.ca/geomet" | ||
}, | ||
"geoviewLayerType": "ogcWms", | ||
"listOfLayerEntryConfig": [{ "layerId": "RAQDPS-FW.CE_PM2.5-DIFF-YAvg" }] | ||
} | ||
] | ||
}, | ||
"theme": "dark", | ||
"components": ["footer-bar"], | ||
"corePackages": [], | ||
"suportedLanguages": ["en"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"map": { | ||
"interaction": "static", | ||
"viewSettings": { | ||
"zoom": 4, | ||
"center": [-100, 60], | ||
"projection": 3857 | ||
}, | ||
"basemapOptions": { | ||
"basemapId": "transport", | ||
"shaded": false, | ||
"labeled": true | ||
}, | ||
"listOfGeoviewLayerConfig": [ | ||
{ | ||
"geoviewLayerId": "wmsLYR1", | ||
"geoviewLayerName": { | ||
"en": "Première Nation / First Nation", | ||
"fr": "Première Nation / First Nation" | ||
}, | ||
"metadataAccessPath": { | ||
"en": "https://services.aadnc-aandc.gc.ca/geomatics/services/Donnees_Ouvertes-Open_Data/Premiere_Nation_First_Nation/MapServer/WMSServer", | ||
"fr": "https://services.aadnc-aandc.gc.ca/geomatics/services/Donnees_Ouvertes-Open_Data/Premiere_Nation_First_Nation/MapServer/WMSServer" | ||
}, | ||
"geoviewLayerType": "ogcWms", | ||
"listOfLayerEntryConfig": [{ "layerId": "0" }] | ||
}, | ||
{ | ||
"geoviewLayerId": "esriDynamicLYR2", | ||
"geoviewLayerName": { | ||
"en": "Energy", | ||
"fr": "Energy" | ||
}, | ||
"metadataAccessPath": { | ||
"en": "https://maps-cartes.ec.gc.ca/arcgis/rest/services/CESI/MapServer", | ||
"fr": "https://maps-cartes.ec.gc.ca/arcgis/rest/services/CESI/MapServer" | ||
}, | ||
"geoviewLayerType": "esriDynamic", | ||
"listOfLayerEntryConfig": [{ "layerId": "0" }, { "layerId": "6" }] | ||
}, | ||
{ | ||
"geoviewLayerId": "geojsonLYR4", | ||
"geoviewLayerName": { | ||
"en": "GeoJSON Line", | ||
"fr": "GeoJSON Line" | ||
}, | ||
"metadataAccessPath": { | ||
"en": "./geojson/metadata.json", | ||
"fr": "./geojson/metadata.json" | ||
}, | ||
"geoviewLayerType": "GeoJSON", | ||
"listOfLayerEntryConfig": [{ "layerId": "points.json" }, { "layerId": "lines.json" }, { "layerId": "polygons.json" }] | ||
}, | ||
{ | ||
"geoviewLayerId": "wmsLYR7", | ||
"geoviewLayerName": { | ||
"en": "Geomet", | ||
"fr": "Geomet" | ||
}, | ||
"metadataAccessPath": { | ||
"en": "https://geo.weather.gc.ca/geomet", | ||
"fr": "https://geo.weather.gc.ca/geomet" | ||
}, | ||
"geoviewLayerType": "ogcWms", | ||
"listOfLayerEntryConfig": [{ "layerId": "RAQDPS-FW.CE_PM2.5-DIFF-YAvg" }] | ||
} | ||
] | ||
}, | ||
"theme": "dark", | ||
"components": ["footer-bar"], | ||
"corePackages": [], | ||
"suportedLanguages": ["en"] | ||
} |
Oops, something went wrong.