mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-05 12:21:54 +02:00
Issue #84: fix layers for road connection.
This commit is contained in:
parent
96c8302930
commit
895790dd0e
1 changed files with 4 additions and 0 deletions
|
@ -524,6 +524,10 @@ class Roads:
|
|||
continue
|
||||
connected: list[tuple[Road, int]] = self.connections[id_]
|
||||
road_1, index_1 = connected[0]
|
||||
|
||||
if road_1.layer != layer:
|
||||
continue
|
||||
|
||||
road_2, index_2 = connected[1]
|
||||
node: OSMNode = road_1.nodes[index_1]
|
||||
point = flinger.fling(node.coordinates)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue