Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Merge branch 'develop' of https://github.com/nasa-gibs/worldview into redux-sidebar-1623

Benjamin Kingefe974531218
diff --cc web/js/containers/projection.js
index caeeddf58,4c7f81f8e..d71f28995
--- a/web/js/containers/projection.js
+++ b/web/js/containers/projection.js
@@@ -26,10 -27,20 +27,19 @@@ const DEFAULT_PROJ_ARRAY =
key: 'antarctic'
}
];
-
+ const getInfoArray = function(projArray) {
+ return projArray.map(el => {
+ return {
+ text: el.name,
+ iconClass: el.style + ' ui-icon icon-large',
+ id: 'change-' + el.id + '-button',
+ key: el.id
+ };
+ });
+ };
class ProjectionList extends Component {
updateProjection(id) {
- const { updateProjection, models, config, onCloseModal } = this.props;
- models.proj.select(id); // migration crutch
+ const { updateProjection, config, onCloseModal } = this.props;
updateProjection(id, config);
onCloseModal();
googleTagManager.pushEvent({