Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

add default to geographic if not provided, particularly for proj change in location pop action

Edward Plato5f5f1b6c29cb
diff --git a/web/js/modules/projection/util.js b/web/js/modules/projection/util.js
index 21dd3ff7c..5dd563788 100644
--- a/web/js/modules/projection/util.js
+++ b/web/js/modules/projection/util.js
@@ -42,6 +42,11 @@ export function mapLocationToProjState(parameters, stateFromLocation, state) {
proj: { $set: newProjState }
});
}
+ } else {
+ const selected = lodashGet(state, 'config.projections.geographic');
+ stateFromLocation = update(stateFromLocation, {
+ proj: { selected: { $set: selected } }
+ });
}
return stateFromLocation;
}