Skip to content

Commit

Permalink
Surface: Don't make untagged motorways invisible (fixes #5247)
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Sep 26, 2023
1 parent 84a6c15 commit bd3d0f2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit bd3d0f2

Please sign in to comment.