fix: use static renderer at zoom 0

renderer is not able to change the size of tile to more than 512px in tile mode

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
Andrew Calcutt 2023-11-27 18:03:26 -05:00
parent 75bd955d73
commit 119cf66f66

View file

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