Interactive interface for browsing global, full-resolution satellite imagery
wip
Jason Kentd3a19d6c9225
diff --git a/e2e/features/image-download/formats-test.js b/e2e/features/image-download/formats-test.jsindex cb9c6d9b6..4b920f402 100644--- a/e2e/features/image-download/formats-test.js+++ b/e2e/features/image-download/formats-test.js@@ -36,14 +36,14 @@ module.exports = {'Add a worldfile': function(c) {openImageDownloadPanel(c);- c.click('#wv-image-worldfile option[value="true"]');+ c.click('#wv-image-worldfile option[value="1"]');clickDownload(c);c.pause(2000);c.expect.element('#wv-image-download-url').to.have.attribute('url').and.to.contain('WORLDFILE=true');- c.click('#wv-image-worldfile option[value="false"]');+ c.click('#wv-image-worldfile option[value="0"]');closeImageDownloadPanel(c);},diff --git a/web/js/components/image-download/panel.js b/web/js/components/image-download/panel.jsindex e3cd9ca02..3e1bc3c7b 100644--- a/web/js/components/image-download/panel.js+++ b/web/js/components/image-download/panel.js@@ -87,8 +87,9 @@ export default class ImageResSelection extends React.Component {resolution: value});} else if (type === 'worldfile') {+ value = Boolean(Number(value));this.setState({- isWorldfile: Boolean(Number(value))+ isWorldfile: value});} else {this.setState({diff --git a/web/js/modules/image-download/util.js b/web/js/modules/image-download/util.jsindex eb6c2eae2..17085f5ee 100644--- a/web/js/modules/image-download/util.js+++ b/web/js/modules/image-download/util.js@@ -58,7 +58,7 @@ export function getDownloadUrl(url, proj, layerDefs, lonlats, dimensions, dateTiif (opacities.length > 0) {params.push(`OPACITIES=${opacities.join(',')}`);}- if (isWorldfile === 'true') {+ if (isWorldfile) {params.push('WORLDFILE=true');}return url + '?' + params.join('&') + `&ts=${Date.now()}`;