Interactive interface for browsing global, full-resolution satellite imagery
only fade in granule tiles (#3992)
Jason Kent6dc15c0cbfdc
diff --git a/web/js/map/layerbuilder.js b/web/js/map/layerbuilder.jsindex b1e8d4933..c17dac473 100644--- a/web/js/map/layerbuilder.js+++ b/web/js/map/layerbuilder.js@@ -368,11 +368,12 @@ export default function mapLayerBuilder(config, cache, store) {function createLayerWMTS (def, options, day, state) {const { proj } = state;const {- id, layer, format, matrixIds, matrixSet, matrixSetLimits, period, source, style, wrapadjacentdays,+ id, layer, format, matrixIds, matrixSet, matrixSetLimits, period, source, style, wrapadjacentdays, type,} = def;const configSource = config.sources[source];const { date, polygon, shifted } = options;const isSubdaily = period === 'subdaily';+ const isGranule = type === 'granule';if (!source) {throw new Error(`${id}: Invalid source: ${source}`);@@ -413,7 +414,7 @@ export default function mapLayerBuilder(config, cache, store) {cacheSize: 4096,crossOrigin: 'anonymous',format,- transition: 300,+ transition: isGranule ? 350 : 0,matrixSet: configMatrixSet.id,tileGrid: new OlTileGridWMTS(tileGridOptions),wrapX: false,