mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Use maxDistance passed in to osmIntersection() in turn search
(closes #4844) The maxDistance was previously hardcoded to 30 meters. Now we pass it in as a parameter when creating the intersection. But we need to honor that same maxDistance later when walking the graph to find turns from.
This commit is contained in:
@@ -387,7 +387,6 @@ export function osmIntersection(graph, startVertexId, maxDistance) {
|
||||
// maxViaWay=1 from-*-via-*-to (1 via max)
|
||||
// maxViaWay=2 from-*-via-*-via-*-to (2 vias max)
|
||||
var maxPathLength = (maxViaWay * 2) + 3;
|
||||
var maxDistance = 30; // meters
|
||||
var turns = [];
|
||||
|
||||
step(start);
|
||||
|
||||
Reference in New Issue
Block a user