Fix bug in tile cache switch

By default, only base_night and base_light tile layers were cached.
This commit is contained in:
Maciej Ziarkowski 2021-02-24 07:21:44 +00:00 committed by GitHub
parent 17b83212c6
commit a881b66d76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) ||