From 4fc43f36c951fff89526118f881b8c91be6494e9 Mon Sep 17 00:00:00 2001 From: Sergey Vartanov Date: Tue, 21 Sep 2021 05:44:01 +0300 Subject: [PATCH] Support ford=yes and tunnel=yes tags. --- map_machine/road.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/map_machine/road.py b/map_machine/road.py index cfb8df8..1aca58f 100644 --- a/map_machine/road.py +++ b/map_machine/road.py @@ -431,6 +431,9 @@ class Road(Tagged): width = self.matcher.default_width if extra_width and self.tags.get("bridge") == "yes": color = Color("#666666") + if extra_width and self.tags.get("ford") == "yes": + color = Color("#88BBFF") + width += 2 if extra_width and self.tags.get("embankment") == "yes": color = Color("#666666") width += 4 @@ -446,6 +449,8 @@ class Road(Tagged): } if extra_width and self.tags.get("embankment") == "yes": style["stroke-dasharray"] = "1,3" + if extra_width and self.tags.get("tunnel") == "yes": + style["stroke-dasharray"] = "3,3" path.update(style) svg.add(path)