Support area=yes for roads.

Turns out roads may be areas.
This commit is contained in:
Sergey Vartanov 2022-02-11 08:37:14 +03:00
parent 66dc92c137
commit 918e9a7022

View file

@ -482,8 +482,12 @@ class Road(Tagged):
if self.tags.get("embankment") == "yes":
extra_width = 4.0
fill: str = "none"
if self.tags.get("area") == "yes":
fill = color.hex
style: dict[str, Union[int, float, str]] = {
"fill": "none",
"fill": fill,
"stroke": color.hex,
"stroke-linecap": "butt",
"stroke-linejoin": "round",