Don't download tils if z>22, prevent hang if osm-api is blocked (e.g. by umatrix) (see #880)

This commit is contained in:
pietervdvn 2022-06-28 01:37:49 +02:00
parent 3a3e2750f2
commit b9be22a932

View file

@ -118,7 +118,7 @@ export default class OsmFeatureSource {
}
private async LoadTile(z, x, y): Promise<void> {
if (z > 25) {
if (z >= 22) {
throw "This is an absurd high zoom level"
}