Remove console.log, tweaks to zoomlevels

This commit is contained in:
pietervdvn 2021-04-23 20:27:01 +02:00
parent f4dacab9ef
commit d2fa20ee91
2 changed files with 3 additions and 4 deletions

View file

@ -77,9 +77,8 @@ export default class GeoJsonSource implements FeatureSource {
// No need to download! - the layer is disabled
return;
}
console.log("???", locationControl, flayer.layerDef)
if(locationControl.data.zoom < flayer.layerDef.minzoom){
console.log("Not downloading ", needed, "not sufficiently zoomed")
return;
}
@ -200,4 +199,4 @@ export default class GeoJsonSource implements FeatureSource {
}).fail(msg => self.onFail(msg, url))
}
}
}

View file

@ -58,7 +58,7 @@
{
"builtin": "sport_pitch",
"override": {
"minzoom": 14
"minzoom": 15
}
},