Interactive interface for browsing global, full-resolution satellite imagery
move component variables up
VictorS25bafed54b62
diff --git a/web/js/components/measure-tool/measure-menu.js b/web/js/components/measure-tool/measure-menu.jsindex d481ae130..c21d8dad2 100644--- a/web/js/components/measure-tool/measure-menu.js+++ b/web/js/components/measure-tool/measure-menu.js@@ -57,6 +57,11 @@ const MeasureMenu = function () {measurementsInProj: !!Object.keys(state.measure.allMeasurements[state.proj.selected.crs]).length,}), shallowEqual);+ const listSize = isTouchDevice ? 'large' : 'small';+ DOWNLOAD_GEOJSON.hidden = !measurementsInProj || isMobile;+ const getRemoveOptionIndex = OPTIONS_ARRAY.findIndex((item) => item.text === 'Remove Measurements');+ OPTIONS_ARRAY[getRemoveOptionIndex].hidden = !measurementsInProj;+const triggerEvent = (eventName) => {events.trigger(eventName);onToggle();@@ -68,11 +73,6 @@ const MeasureMenu = function () {dispatch(changeUnits(units));};- const listSize = isTouchDevice ? 'large' : 'small';- DOWNLOAD_GEOJSON.hidden = !measurementsInProj || isMobile;- const getRemoveOptionIndex = OPTIONS_ARRAY.findIndex((item) => item.text === 'Remove Measurements');- OPTIONS_ARRAY[getRemoveOptionIndex].hidden = !measurementsInProj;-return (<><Form>