Skip to content

Commit

Permalink
chore: added special handling of wms time for non standard wms
Browse files Browse the repository at this point in the history
  • Loading branch information
santilland committed Aug 1, 2023
1 parent be670c3 commit 04041d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,10 @@ export async function loadIndicatorData(baseConfig, payload) {
const wmsEndpoint = jsonData.links.find((item) => item.rel === 'wms');
if (wmsEndpoint) {
indicatorObject.display = createWMSDisplay(wmsEndpoint, jsonData.name);
// Handling of unique non standard functionality
if (indicatorObject.indicator === 'WSF') {
indicatorObject.display.specialEnvTime = true;
}
timeBasedLayerFound = true;
} else {
indicatorObject.display = null;
Expand Down

0 comments on commit 04041d3

Please sign in to comment.