Dynamic JSON: only request existing tiles if a whitelist is given

This commit is contained in:
Pieter Vander Vennet 2021-10-13 03:10:46 +02:00
parent adb36c2ffe
commit 69f21f29eb
6 changed files with 8 additions and 21 deletions

View file

@ -159,10 +159,8 @@ export class TileHierarchyAggregator implements FeatureSource {
const self = this
const empty = []
return new StaticFeatureSource(
locationControl.map(loc => {
const targetZoom = loc.zoom
if(targetZoom > clusteringConfig.maxZoom){
locationControl.map(loc => loc.zoom).map(targetZoom => {
if(targetZoom-1 > clusteringConfig.maxZoom){
return empty
}