Interactive interface for browsing global, full-resolution satellite imagery
Make code enhancements #1084
Benjamin King6d93f0df5ac0
diff --git a/web/js/components/sidebar/compare.js b/web/js/components/sidebar/compare.jsindex dded6d49f..801fde8f9 100644--- a/web/js/components/sidebar/compare.js+++ b/web/js/components/sidebar/compare.js@@ -14,11 +14,11 @@ class CompareCase extends React.Component {isCompareA,height} = this.props;- const outterClass = 'layer-container sidebar-panel';+ const outerClass = 'layer-container sidebar-panel';const tabClasses = 'ab-tab';return (<div className={isActive ? '' : 'hidden '}>- <div className={outterClass}>+ <div className={outerClass}><div className="ab-tabs-case"><Nav tabs><NavItem>diff --git a/web/js/components/sidebar/data/data.js b/web/js/components/sidebar/data/data.jsindex 1e08af51c..794324270 100644--- a/web/js/components/sidebar/data/data.js+++ b/web/js/components/sidebar/data/data.js@@ -1,6 +1,5 @@import React from 'react';import PropTypes from 'prop-types';-// import { Scrollbars } from 'react-custom-scrollbars';import Product from './product';import Scrollbars from '../../util/scrollbar';diff --git a/web/js/map/compare/spy.js b/web/js/map/compare/spy.jsindex 5e7f6c2b8..7157c5a59 100644--- a/web/js/map/compare/spy.js+++ b/web/js/map/compare/spy.js@@ -35,7 +35,7 @@ export class Spy {applyEventsToBaseLayers(mapLayers[0],this.map,- applyreverseLayerListeners+ applyReverseLayerListeners);applyEventsToBaseLayers(mapLayers[1], this.map, applyLayerListeners);}@@ -107,7 +107,7 @@ export class Spy {* the other layergroup in cases where the layergroups layer opacity is < 100%* @param {Object} layer | Ol Layer object*/-var applyreverseLayerListeners = function(layer) {+var applyReverseLayerListeners = function(layer) {layer.on('postcompose', inverseClip);bottomLayers.push(layer);};diff --git a/web/js/map/compare/swipe.js b/web/js/map/compare/swipe.jsindex b1b4277d4..7407e8bb6 100644--- a/web/js/map/compare/swipe.js+++ b/web/js/map/compare/swipe.js@@ -14,7 +14,7 @@ const SWIPE_PADDING = 30;export class Swipe {constructor(olMap,- isAactive,+ isActiveA,compareEvents,eventListenerStringObj,valueOverride@@ -33,7 +33,7 @@ export class Swipe {getSwipeOffset() {return swipeOffset;}- update(isCompareA, groupName) {+ update(isActiveA, groupName) {var mapLayers = this.map.getLayers().getArray();if (!groupName) {applyEventsToBaseLayers.call(this, mapLayers[1], applyLayerListeners);