Fix bug in tile cache switch
By default, only base_night and base_light tile layers were cached.
This commit is contained in:
parent
17b83212c6
commit
a881b66d76
@ -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) ||
|
||||
|
Loading…
Reference in New Issue
Block a user