Interactive interface for browsing global, full-resolution satellite imagery
fix proj bug #1576
Benjamin King8aa7f2139124
diff --git a/web/js/components/image-download/panel.js b/web/js/components/image-download/panel.jsindex 7d3cf5a57..b788134ae 100644--- a/web/js/components/image-download/panel.js+++ b/web/js/components/image-download/panel.js@@ -29,7 +29,6 @@ export default class ImageResSelection extends React.Component {this.state = {fileType: props.fileType,fileSize: props.fileSize,- proj: this.props.proj,isWorldfile: props.isWorldfile,resolution: props.resolution,valid: props.valid,@@ -197,14 +196,18 @@ ImageResSelection.propTypes = {fileType: PropTypes.string,fileTypes: PropTypes.object,fileSize: PropTypes.string,- proj: PropTypes.string,+ projection: PropTypes.object,resolution: PropTypes.string,valid: PropTypes.bool,+ lonlats: PropTypes.array,isWorldfile: PropTypes.bool,onDownloadClick: PropTypes.func,firstLabel: PropTypes.string,maxImageSize: PropTypes.string,worldFileOptions: PropTypes.bool,secondLabel: PropTypes.string,- fileTypeOptions: PropTypes.bool+ fileTypeOptions: PropTypes.bool,+ models: PropTypes.object,+ url: PropTypes.string,+ crs: PropTypes.string};diff --git a/web/js/containers/projection.js b/web/js/containers/projection.jsindex de574265b..bf4eed4e1 100644--- a/web/js/containers/projection.js+++ b/web/js/containers/projection.js@@ -28,9 +28,9 @@ const infoArray = [class ProjectionList extends Component {updateProjection(id) {- const { updateProjection, models } = this.props;+ const { updateProjection, models, config } = this.props;models.proj.select(id); // migration crutch- updateProjection(id);+ updateProjection(id, config);googleTagManager.pushEvent({event: 'change_projection',projection: id@@ -70,5 +70,6 @@ ProjectionList.propTypes = {openModal: PropTypes.func,updateProjection: PropTypes.func,models: PropTypes.object,- projection: PropTypes.string+ projection: PropTypes.string,+ config: PropTypes.object};