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
|
@ -48,8 +48,7 @@ export default class DynamicGeoJsonTileSource extends DynamicTileSource {
|
|||
if(whitelist !== undefined){
|
||||
const isWhiteListed = whitelist.get(zxy[1])?.has(zxy[2])
|
||||
if(!isWhiteListed){
|
||||
console.log("Not whitelisted:",zxy, isWhiteListed, whitelist)
|
||||
// return undefined;
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue