Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Sea Surface EIC (#4405)

Ryan Weilerea8ab3293b1b
diff --git a/web/js/containers/animation-widget/animation-widget.js b/web/js/containers/animation-widget/animation-widget.js
index 510559366..e8aca2334 100644
--- a/web/js/containers/animation-widget/animation-widget.js
+++ b/web/js/containers/animation-widget/animation-widget.js
@@ -377,6 +377,8 @@ const mapStateToProps = (state) => {
const hasFutureLayers = activeLayersForProj.filter((layer) => layer.futureTime).length > 0;
const layerDateRange = getDateRange({}, activeLayersForProj);
+ const isAntarctic = proj.id === 'arctic';
+
const minDate = new Date(config.startDate);
let maxDate;
if (layerDateRange && layerDateRange.end > appNow) {
@@ -388,7 +390,7 @@ const mapStateToProps = (state) => {
const {
isDistractionFreeModeActive, isKioskModeActive, animationAvailabilityChecked, eic,
} = ui;
- const checkAnimationAvailability = (eic === 'sa' || eic === 'da') && !animationAvailabilityChecked && isKioskModeActive && isPlaying;
+ const checkAnimationAvailability = (eic === 'sa' || eic === 'da') && !animationAvailabilityChecked && isKioskModeActive && isPlaying && !isAntarctic;
const { isEmbedModeActive } = embed;
const animationIsActive = isActive
&& lodashGet(map, 'ui.selected.frameState_')
diff --git a/web/js/map/layerbuilder.js b/web/js/map/layerbuilder.js
index 84700cee2..c93d0edcf 100644
--- a/web/js/map/layerbuilder.js
+++ b/web/js/map/layerbuilder.js
@@ -26,7 +26,6 @@ import {
mergeBreakpointLayerAttributes,
formatReduxDate,
extractDateFromTileErrorURL,
- formatSelectedDate,
} from './util';
import { datesInDateRanges, prevDateInDateRange } from '../modules/layers/util';
import { updateLayerDateCollection, updateLayerCollection } from '../modules/layers/actions';
@@ -163,14 +162,12 @@ export default function mapLayerBuilder(config, cache, store) {
*/
const tileLoadFunction = (layer, layerDate) => async function(tile, src) {
const state = store.getState();
- const { ui: { isKioskModeActive }, date: { selected } } = state;
+ const { ui: { isKioskModeActive } } = state;
const date = layerDate.toISOString().split('T')[0];
const checkBlobTiles = (headers) => {
- // recently changed from appNow date to selected date, was previously only checking current day
- const formattedSelectedDate = formatSelectedDate(selected);
- if (isKioskModeActive && kioskCheckForBlankTilesList.includes(layer.id) && formattedSelectedDate === date) {
+ if (isKioskModeActive && kioskCheckForBlankTilesList.includes(layer.id)) {
errorTiles.kioskTileCount += 1;
const contentLength = headers.get('content-length');
const contentType = headers.get('content-type');