Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

address PR feedback

Jason Kent248d756f5e6a
diff --git a/web/js/containers/sidebar/layer-list.js b/web/js/containers/sidebar/layer-list.js
index ec361e0b3..53291a236 100644
--- a/web/js/containers/sidebar/layer-list.js
+++ b/web/js/containers/sidebar/layer-list.js
@@ -199,12 +199,10 @@ LayerList.propTypes = {
getNames: PropTypes.func,
groupId: PropTypes.string,
isMobile: PropTypes.bool,
- launchOpacityModal: PropTypes.func,
layers: PropTypes.array,
layerSplit: PropTypes.number,
projId: PropTypes.string,
reorderLayers: PropTypes.func,
- runningLayers: PropTypes.object,
removeLayers: PropTypes.func,
toggleCollapse: PropTypes.func,
toggleVisibility: PropTypes.func,
diff --git a/web/js/containers/sidebar/layers-container.js b/web/js/containers/sidebar/layers-container.js
index 886307787..7d4399095 100644
--- a/web/js/containers/sidebar/layers-container.js
+++ b/web/js/containers/sidebar/layers-container.js
@@ -55,7 +55,7 @@ function LayersContainer (props) {
const renderLayerList = (group, idx) => {
const { groupName, layers, collapsed } = group;
const layersForGroup = layers.map((id) => activeLayersMap[id]);
- return layers && ((
+ return layers && (
<Draggable
key={groupName}
draggableId={groupName}
@@ -80,7 +80,7 @@ function LayersContainer (props) {
</li>
)}
</Draggable>
- ));
+ );
};
const renderOverlayGroups = () => (
@@ -165,7 +165,6 @@ const mapStateToProps = (state, ownProps) => {
overlayGroups,
groupOverlays,
activeLayersMap: getActiveLayersMap(state),
- layerSplit: overlays.length,
};
};
diff --git a/web/js/map/rotation.js b/web/js/map/rotation.js
index d3fe2e9a8..2db5a40fa 100644
--- a/web/js/map/rotation.js
+++ b/web/js/map/rotation.js
@@ -1,10 +1,8 @@
import 'jquery-ui-bundle/jquery-ui';
import { debounce } from 'lodash';
-import util from '../util/util';
import { faIconUndoSVGDomEl, faIconRedoSVGDomEl } from './fa-map-icons';
export default function MapRotate(ui, models, store) {
- this.evts = util.events;
this.intervalId = null;
const self = this;
diff --git a/web/js/modules/layers/selectors.js b/web/js/modules/layers/selectors.js
index 3b7780e83..2617c9122 100644
--- a/web/js/modules/layers/selectors.js
+++ b/web/js/modules/layers/selectors.js
@@ -251,11 +251,9 @@ function forGroup(group, spec = {}, activeLayers, state) {
const defs = lodashFilter(activeLayers, { group });
lodashEach(defs, (def) => {
const notInProj = !def.projections[projId];
- const dynamic = spec.dynamic
- && !['subdaily', 'daily', 'monthly', 'yearly'].includes(def.period);
const notRenderable = spec.renderable
&& !isRenderable(def.id, activeLayers, spec.date, state);
- if (notInProj || dynamic || notRenderable) {
+ if (notInProj || notRenderable) {
return;
}
results.push(def);