Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-2313

Jason Kentabf0aca572f1
diff --git a/web/js/map/natural-events/natural-events.js b/web/js/map/natural-events/natural-events.js
index a4107da1f..9a0d85082 100644
--- a/web/js/map/natural-events/natural-events.js
+++ b/web/js/map/natural-events/natural-events.js
@@ -120,9 +120,9 @@ class NaturalEvents extends React.Component {
this.setState({ prevSelectedEvent: { id, date } });
+ selectDate(useDate);
this.getZoomPromise(event, eventDate, !isIdChange, isInitialLoad).then(() => {
if (!isInitialLoad) {
- selectDate(useDate);
if (categoryChange) {
activateLayersForEventCategory(event.categories[0].title);
}
diff --git a/web/js/map/ui.js b/web/js/map/ui.js
index 50bbf8fc7..86c397cf0 100644
--- a/web/js/map/ui.js
+++ b/web/js/map/ui.js
@@ -196,9 +196,8 @@ export default function mapui(models, config, store) {
case paletteConstants.SET_CUSTOM:
case paletteConstants.SET_DISABLED_CLASSIFICATION:
case paletteConstants.CLEAR_CUSTOM:
- return setTimeout(reloadLayers, 100);
case layerConstants.ADD_LAYERS_FOR_EVENT:
- return setTimeout(reloadLayers, 1500);
+ return setTimeout(reloadLayers, 100);
case vectorStyleConstants.SET_FILTER_RANGE:
case vectorStyleConstants.SET_VECTORSTYLE:
case vectorStyleConstants.CLEAR_VECTORSTYLE:
@@ -638,7 +637,6 @@ export default function mapui(models, config, store) {
const state = store.getState();
const { compare } = state;
- console.log('map - reloadLayers');
if (!config.features.compare || !compare.active) {
const compareMapDestroyed = !compare.active && compareMapUi.active;
if (compareMapDestroyed) {
@@ -703,8 +701,6 @@ export default function mapui(models, config, store) {
const state = store.getState();
const layerGroup = self.selected.getLayers();
- console.log('map - updateLayerVisibilities');
-
const setRenderable = (layer, parentCompareGroup) => {
const { id, group } = layer.wv;
const dateGroup = layer.get('date') || group === 'active' ? 'selected' : 'selectedB';
@@ -922,8 +918,6 @@ export default function mapui(models, config, store) {
.includes(id),
).filter(({ visible }) => visible);
- console.log('map - updateDate');
-
const layerPromises = visibleLayers.map(async (def) => {
const { id, type } = def;
const temporalLayer = ['subdaily', 'daily', 'monthly', 'yearly']