Support ford=yes and tunnel=yes tags.

This commit is contained in:
Sergey Vartanov 2021-09-21 05:44:01 +03:00
parent 9c3cda3524
commit 4fc43f36c9

View file

@ -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)