From b9be22a932ba25679fa98728a1c691c8644672db Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Tue, 28 Jun 2022 01:37:49 +0200 Subject: [PATCH] Don't download tils if z>22, prevent hang if osm-api is blocked (e.g. by umatrix) (see #880) --- Logic/FeatureSource/TiledFeatureSource/OsmFeatureSource.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Logic/FeatureSource/TiledFeatureSource/OsmFeatureSource.ts b/Logic/FeatureSource/TiledFeatureSource/OsmFeatureSource.ts index a32dbad8f..c7cdae0a4 100644 --- a/Logic/FeatureSource/TiledFeatureSource/OsmFeatureSource.ts +++ b/Logic/FeatureSource/TiledFeatureSource/OsmFeatureSource.ts @@ -118,7 +118,7 @@ export default class OsmFeatureSource { } private async LoadTile(z, x, y): Promise { - if (z > 25) { + if (z >= 22) { throw "This is an absurd high zoom level" }