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

View file

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