Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…form/geoview into 1823-data-table-allfeatureinfo
  • Loading branch information
kaminderpal committed Feb 23, 2024
2 parents 27d6994 + 0e91ccf commit ac4b9f3
Show file tree
Hide file tree
Showing 44 changed files with 7,558 additions and 4,012 deletions.
10,014 changes: 6,767 additions & 3,247 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,16 @@
"en": "Custom description",
"fr": "Descriptif personnalisé"
},
"locked": true,
"reversed": true,
"defaultValue": ""
"locked": false,
"reversed": false,
"temporalDimension": {
"field": "time_slider_date",
"default": ["1940-01-01T05:00:00Z", "1960-01-01T05:00:00Z"],
"unitSymbol": "",
"range": "1900-01-01T05:00:00Z/2000-01-01T05:00:00Z/P1Y",
"nearestValues": "absolute",
"singleHandle": false
}
},
{
"layerPaths": ["wmsLYR1-spatiotemporel/RADAR_1KM_RSNO"],
Expand All @@ -26,10 +33,11 @@
},
"locked": true,
"reversed": true,
"defaultValue": ""
"defaultValue": "2024-02-21T14:54:00Z"
},
{
"layerPaths": ["MSI/msi-94-or-more"]
"layerPaths": ["MSI/msi-94-or-more"],
"defaultValue": "2011-08-15T00:00:00Z"
}
],
"suportedLanguages": ["en", "fr"]
Expand Down
43 changes: 38 additions & 5 deletions packages/geoview-core/public/templates/default-config.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ <h1><strong>Default Configuration</strong></h1>
<a href="#HLCONF2">2. Load with wrong JSON object</a><br />
<a href="#HLCONF3">3. Load with bad config values</a><br />
<a href="#HLCONF4">4. Load layers with bad config values</a><br />
<a href="#HLCONF5">5. Load config from URL params</a><br />
<a href="#HLCONF5A">5.A Load config from URL params</a><br />
<a href="#HLCONF5B">5.B Load config from div params</a><br />
<a href="#HLCONF6">6. Load config from file</a><br />
<a href="#HLCONF7">7. Load config from function call</a><br />
</td>
Expand Down Expand Up @@ -184,13 +185,45 @@ <h4 id="HLCONF4">4. Load layers with bad config values</h4>
<hr />

<div class="map-title-holder">
<h4 id="HLCONF5">5. Load config from URL params</h4>
<h4 id="HLCONF5A">5.A. Load config from URL params</h4>
<a class="ref-link" href="#top">Top</a>
</div>
<div id="CONF5" class="geoview-map" data-lang="en" data-shared="true"></div>
<div id="CONF5A" class="geoview-map" data-lang="en" data-shared="true"></div>
<p>
This map loads it's configurations from the URL parameters by providing <strong>data-shared</strong>. If
<strong>data-config</strong> is provided then it will override all loaded config from parameters.
This map loads it's configurations from the URL parameters by providing a <strong>data-shared</strong> attribute. If a
<strong>data-config</strong> attribute was also provided then the later will have its configuration overriden with config from url parameters.
</p>
<hr />

<div class="map-title-holder">
<h4 id="HLCONF5B">5.B. Load config from div params</h4>
<a class="ref-link" href="#top">Top</a>
</div>
<div id="CONF5B" class="geoview-map" data-config="{
'map': {
'interaction': 'dynamic',
'viewSettings': {
'zoom': 4,
'center': [-100, 40],
'projection': 3857
},
'basemapOptions': {
'basemapId': 'transport',
'shaded': false,
'labeled': true
},
'listOfGeoviewLayerConfig': []
},
'components': ['overview-map'],
'corePackages': [],
'suportedLanguages': ['en', 'fr']
}"
data-lang="en"
data-geocore-keys="12acd145-626a-49eb-b850-0a59c9bc7506,ccc75c12-5acc-4a6a-959f-ef6f621147b9"
data-geocore-endpoint="https://geocore-stage.api.geo.ca">
</div>
<p>
This map loads it's configurations from the div parameters by providing a <strong>data-geocore-keys</strong> and optionally a <strong>data-geocore-endpoint</strong>.
</p>
<hr />

Expand Down
3 changes: 2 additions & 1 deletion packages/geoview-core/public/templates/raw-feature-info.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ <h4 id="HUC1">1. Basic Map English Geo.ca theme</h4>
'geoviewLayerType': 'esriFeature',
'listOfLayerEntryConfig': [
{
'layerId': '1'
'layerId': '1',
'initialSettings': { 'removable': false }
}
]
},
Expand Down
Loading

0 comments on commit ac4b9f3

Please sign in to comment.