Interactive interface for browsing global, full-resolution satellite imagery
Add tile preload to optimize zooming in/out on map
ZachTRice2c9d4f4b11fc
diff --git a/web/js/map/layerbuilder.js b/web/js/map/layerbuilder.jsindex 41fae9c2f..9cb43f61e 100644--- a/web/js/map/layerbuilder.js+++ b/web/js/map/layerbuilder.js@@ -228,6 +228,7 @@ export function mapLayerBuilder(models, config, cache, Parent) {sourceOptions.tileClass = lookupFactory(lookup, sourceOptions);}var layer = new OlLayerTile({+ preload: Infinity,extent: extent,source: new OlSourceWMTS(sourceOptions)});@@ -306,6 +307,7 @@ export function mapLayerBuilder(models, config, cache, Parent) {sourceOptions.tileClass = lookupFactory(lookup, sourceOptions);}var layer = new OlLayerTile({+ preload: Infinity,extent: extent,source: new OlSourceTileWMS(sourceOptions)});