fix: zoom 0 workaround

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
Andrew Calcutt 2024-01-22 02:18:36 -05:00
parent 6e5573d107
commit 2c75d192b3

View file

@ -407,7 +407,7 @@ const respondImage = (
const tileMargin = Math.max(options.tileMargin || 0, 0); const tileMargin = Math.max(options.tileMargin || 0, 0);
let pool; let pool;
if (mode === 'tile' && tileMargin === 0) { if (mode === 'tile' && tileMargin === 0 && z !== 0) {
pool = item.map.renderers[scale]; pool = item.map.renderers[scale];
} else { } else {
pool = item.map.renderersStatic[scale]; pool = item.map.renderersStatic[scale];