Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

tour/redux merge fixes

Benjamin Kingd21a3f3d626d
diff --git a/web/js/app.js b/web/js/app.js
index 4ab4974aa..24766b43d 100644
--- a/web/js/app.js
+++ b/web/js/app.js
@@ -106,7 +106,8 @@ import { compareUi } from './compare/ui';
// Tour
import { tourModel } from './tour/model';
import { tourUi } from './tour/ui';
-
+// Alert
+import { alertUi } from './alert/ui';
// Other
import { debugConfig, debugLayers } from './debug';
import Brand from './brand';
@@ -447,6 +448,7 @@ class App extends React.Component {
self.props.updateConfig(models, config); // crutch between old state system and redux
elapsed('ui');
// Create widgets
+ ui.alert = alertUi(ui);
ui.sidebar = sidebarUi(models, config, ui);
ui.tour = tourUi(models, ui, config);
ui.activeLayers = layersActive(models, ui, config);
diff --git a/web/js/components/projection/util.js b/web/js/components/projection/util.js
new file mode 100644
index 000000000..d9c933ffd
--- /dev/null
+++ b/web/js/components/projection/util.js
@@ -0,0 +1,16 @@
+export function parse(state, errors, config) {
+ // Permalink version 1.0 - 1.1
+ if (state['switch']) {
+ state.p = state['switch'];
+ delete state['switch'];
+ }
+ var projId = state.p;
+ if (projId) {
+ if (!config.projections[projId]) {
+ delete state.p;
+ errors.push({
+ message: 'Unsupported projection: ' + projId
+ });
+ }
+ }
+}
diff --git a/web/js/containers/info.js b/web/js/containers/info.js
index d600ebdad..bd9b47ddb 100644
--- a/web/js/containers/info.js
+++ b/web/js/containers/info.js
@@ -53,7 +53,7 @@ class InfoList extends Component {
}
},
{
- text: 'Start Tour',
+ text: 'Explore Worldview',
iconClass: 'ui-icon fa fa-truck fa-fw',
id: 'start_tour_info_item'
},