mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-03 12:16:42 +02:00
Support ford=yes and tunnel=yes tags.
This commit is contained in:
parent
9c3cda3524
commit
4fc43f36c9
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue