diff --git a/src/config.ts b/src/config.ts index 81cd6db..90da9a9 100644 --- a/src/config.ts +++ b/src/config.ts @@ -36,7 +36,7 @@ class ClientConfig { /** * Number of tiles to keep in cache */ - public cacheSize: number = 200; + public tileCacheSize: number = 200; public bufferToPixelData: BufferToPixelDataFunction | null; diff --git a/src/tiledecoding.ts b/src/tiledecoding.ts index 4eefb97..86dd2e6 100644 --- a/src/tiledecoding.ts +++ b/src/tiledecoding.ts @@ -61,7 +61,7 @@ let tileCache = null; */ export function getTileCache(): QuickLRU { if (!tileCache) { - tileCache = new QuickLRU({ maxSize: config.cacheSize }); + tileCache = new QuickLRU({ maxSize: config.tileCacheSize }); } return tileCache; }