Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix worldfile download #1576

Benjamin King5c0846490967
diff --git a/web/js/components/image-download/panel.js b/web/js/components/image-download/panel.js
index b788134ae..4f4c3264f 100644
--- a/web/js/components/image-download/panel.js
+++ b/web/js/components/image-download/panel.js
@@ -61,7 +61,7 @@ export default class ImageResSelection extends React.Component {
if (opacities.length > 0) {
params.push(`OPACITIES=${opacities.join(',')}`);
}
- if (isWorldfile === true) {
+ if (isWorldfile === 'true') {
params.push('WORLDFILE=true');
}
let dlURL = url + '?' + params.join('&') + `&ts=${Date.now()}`;
@@ -185,7 +185,7 @@ ImageResSelection.defaultProps = {
height: '0',
imageSize: '0',
maxImageSize: '250 MB',
- isWorldfile: false,
+ isWorldfile: 'false',
resolution: '1',
worldFileOptions: true,
fileTypeOptions: true,
@@ -200,7 +200,7 @@ ImageResSelection.propTypes = {
resolution: PropTypes.string,
valid: PropTypes.bool,
lonlats: PropTypes.array,
- isWorldfile: PropTypes.bool,
+ isWorldfile: PropTypes.string,
onDownloadClick: PropTypes.func,
firstLabel: PropTypes.string,
maxImageSize: PropTypes.string,