fixed empty blocks at some zoom levels

pull/155/head
rd528 2025-08-30 02:59:30 -04:00
rodzic d85535e9ef
commit ecda55a44a
1 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -118,13 +118,14 @@ class Renderer {
}
const scale = layer.extent / utils.tilesizeAtZoom(zoom);
const searchPadding = this.tilePadding * scale;
layers[layerId] = {
scale: scale,
features: layer.tree.search({
minX: -position.x * scale,
minY: -position.y * scale,
maxX: (this.width - position.x) * scale,
maxY: (this.height - position.y) * scale
minX: (-position.x - searchPadding) * scale,
minY: (-position.y - searchPadding) * scale,
maxX: (this.width - position.x + searchPadding) * scale,
maxY: (this.height - position.y + searchPadding) * scale
}),
};
}