Skip to content

Commit

Permalink
Set default layers for Togo and Great Lakes
Browse files Browse the repository at this point in the history
  • Loading branch information
olafveerman committed Sep 16, 2020
1 parent c96c63e commit 1f21b0f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/assets/scripts/components/spotlight/single/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,19 @@ class SpotlightAreasSingle extends React.Component {

// Set query state definition for url state storing.
const common = getCommonQsState(props);
common.layers.default = 'nightlights-hd';

switch (props.match.params.spotlightId) {
case 'togo':
common.layers.default = 'togo-ag';
break;
case 'wble':
common.layers.default = 'water-wq-gl-chl';
break;
default:
common.layers.default = 'nightlights-hd';
break;
}

this.qsState = new QsState(common);

// The active layers can only be enabled once the map loads. The toggle
Expand Down

0 comments on commit 1f21b0f

Please sign in to comment.