mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-06 10:09:52 +02:00
Support area=yes for roads.
Turns out roads may be areas.
This commit is contained in:
parent
66dc92c137
commit
918e9a7022
1 changed files with 5 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue