From a881b66d76e401a5e049d039fca0a84d6935997a Mon Sep 17 00:00:00 2001 From: Maciej Ziarkowski <maciej.ziarkowski@gmail.com> Date: Wed, 24 Feb 2021 07:21:44 +0000 Subject: [PATCH] Fix bug in tile cache switch By default, only base_night and base_light tile layers were cached. --- app/src/tiles/rendererDefinition.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/tiles/rendererDefinition.ts b/app/src/tiles/rendererDefinition.ts index 8404ecbf..0f26837d 100644 --- a/app/src/tiles/rendererDefinition.ts +++ b/app/src/tiles/rendererDefinition.ts @@ -31,7 +31,7 @@ let shouldCacheFn: (t: TileParams) => boolean; if(!allLayersCacheSwitch) { shouldCacheFn = t => false; -} else if(!dataLayersCacheSwitch) { +} else if(dataLayersCacheSwitch) { // cache age data and base building outlines for more zoom levels than other layers shouldCacheFn = ({ tileset, z }: TileParams) => (tileset === 'date_year' && z <= 16) ||