mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-05 20:31:51 +02:00
Issue #107: support parallel offset for ways.
This commit is contained in:
parent
88dd7f4426
commit
a16bf52f55
3 changed files with 49 additions and 6 deletions
|
@ -292,7 +292,9 @@ class Constructor:
|
|||
line_style.style
|
||||
)
|
||||
new_style["stroke"] = recolor.hex
|
||||
line_style = LineStyle(new_style, line_style.priority)
|
||||
line_style = LineStyle(
|
||||
new_style, line_style.parallel_offset, line_style.priority
|
||||
)
|
||||
|
||||
self.figures.append(
|
||||
StyledFigure(line.tags, inners, outers, line_style)
|
||||
|
@ -341,7 +343,7 @@ class Constructor:
|
|||
"stroke-width": 1.0,
|
||||
}
|
||||
figure: StyledFigure = StyledFigure(
|
||||
line.tags, inners, outers, LineStyle(style, 1000.0)
|
||||
line.tags, inners, outers, LineStyle(style, 0.0, 1000.0)
|
||||
)
|
||||
self.figures.append(figure)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue