mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-22 21:46:24 +02:00
Issue #84: reduce conflation artifacts.
This commit is contained in:
parent
47c786edb5
commit
dbaecd41e1
4 changed files with 12 additions and 0 deletions
|
@ -579,6 +579,18 @@ class ComplexConnector(Connector):
|
|||
|
||||
def draw(self, svg: Drawing) -> None:
|
||||
"""Draw connection fill."""
|
||||
circle = svg.circle(
|
||||
self.road_1.line.points[self.index_1],
|
||||
self.road_1.width * self.scale / 2,
|
||||
fill=self.road_1.matcher.color.hex,
|
||||
)
|
||||
svg.add(circle)
|
||||
circle = svg.circle(
|
||||
self.road_2.line.points[self.index_2],
|
||||
self.road_2.width * self.scale / 2,
|
||||
fill=self.road_2.matcher.color.hex,
|
||||
)
|
||||
svg.add(circle)
|
||||
path = svg.path(
|
||||
d=["M"] + self.curve_1 + ["L"] + self.curve_2 + ["Z"],
|
||||
fill=self.road_1.matcher.color.hex,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue