Interactive interface for browsing global, full-resolution satellite imagery
catch tile load error
Jason Kentab2922b981fe
diff --git a/web/js/modules/map/util.js b/web/js/modules/map/util.jsindex 971e0122b..4d085f71d 100644--- a/web/js/modules/map/util.js+++ b/web/js/modules/map/util.js@@ -237,7 +237,12 @@ function promiseTileLayer(layer, extent, map) {const loadTile = function ([one, two, three]) {const tile = tileSource.getTile(one, two, three, pixelRatio, projection);- tile.load();+ try {+ tile.load();+ } catch (e) {+ console.error(`Could not load tile with coords: [${one}, ${two}, ${three}] for extent [${extent}]`);+ console.error(e);+ }if (tile.state === 2) resolve();i += 1;tileSource.on('tileloadend', onLoad);