forked from MapComplete/MapComplete
Dynamic JSON: only request existing tiles if a whitelist is given
This commit is contained in:
parent
adb36c2ffe
commit
69f21f29eb
6 changed files with 8 additions and 21 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue