Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Update hasSecondLayerGroup and activeString based on permalink

Benjamin King943e1a1d6799
diff --git a/web/js/modules/compare/util.js b/web/js/modules/compare/util.js
index ac522bdd4..e6eadbacf 100644
--- a/web/js/modules/compare/util.js
+++ b/web/js/modules/compare/util.js
@@ -6,6 +6,14 @@ export function mapLocationToCompareState(parameters, stateFromLocation) {
stateFromLocation = update(stateFromLocation, {
compare: { active: { $set: true } }
});
+ if (parameters.ca === 'false') {
+ stateFromLocation = update(stateFromLocation, {
+ compare: { activeString: { $set: 'activeB' } }
+ });
+ stateFromLocation = update(stateFromLocation, {
+ layers: { hasSecondLayerGroup: { $set: true } }
+ });
+ }
} else {
stateFromLocation = update(stateFromLocation, {
compare: { $set: initialCompareState }