Performance: fix stuttering at low zoom

This commit is contained in:
Pieter Vander Vennet 2023-11-15 03:59:02 +01:00
parent 4f4b60afd8
commit e9a511e5bd
4 changed files with 13 additions and 2 deletions

View file

@ -66,6 +66,7 @@ export default class DynamicGeoJsonTileSource extends DynamicTileSource {
const blackList = new Set<string>()
super(
source.geojsonZoomLevel,
layer.minzoom,
(zxy) => {
if (whitelist !== undefined) {
const isWhiteListed = whitelist.get(zxy[1])?.has(zxy[2])