Interactive interface for browsing global, full-resolution satellite imagery
#2649 make sure to handle cases where tile matrices are undefined
Jason Kente2802bb40568
diff --git a/web/js/map/layerbuilder.js b/web/js/map/layerbuilder.jsindex b2c20eec9..50219e275 100644--- a/web/js/map/layerbuilder.js+++ b/web/js/map/layerbuilder.js@@ -312,7 +312,7 @@ export function mapLayerBuilder(models, config, cache, ui, store) {}const { tileMatrices, resolutions, tileSize } = matrixSet;const { origin, extent } = calcExtentsFromLimits(matrixSet, def.matrixSetLimits, day, proj);- const sizes = tileMatrices.map(({ matrixWidth, matrixHeight }) => [matrixWidth, -matrixHeight]);+ const sizes = !tileMatrices ? [] : tileMatrices.map(({ matrixWidth, matrixHeight }) => [matrixWidth, -matrixHeight]);const tileGridOptions = {origin,extent,