From bd3d0f2baf9f0865c3e88544eb25e164d4af9bf1 Mon Sep 17 00:00:00 2001 From: Tobias Zwick Date: Tue, 26 Sep 2023 16:35:01 +0200 Subject: [PATCH] Surface: Don't make untagged motorways invisible (fixes #5247) --- .../streetcomplete/overlays/surface/SurfaceOverlay.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/de/westnordost/streetcomplete/overlays/surface/SurfaceOverlay.kt b/app/src/main/java/de/westnordost/streetcomplete/overlays/surface/SurfaceOverlay.kt index 78566b8b15..e7c466696f 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/overlays/surface/SurfaceOverlay.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/overlays/surface/SurfaceOverlay.kt @@ -60,9 +60,7 @@ private fun getStyle(element: Element): Style { } } } else { - val mainColor = createSurfaceAndNote(element.tags).getColor(element) - // unspecified surface on motorways is okay (assumption is that all motorways are asphalted) - if (mainColor == Color.DATA_REQUESTED && isMotorway(element.tags)) Color.INVISIBLE else mainColor + createSurfaceAndNote(element.tags).getColor(element) } return if (isArea) PolygonStyle(color) else PolylineStyle(StrokeStyle(color)) }