test: expose complex carriageway edit handles
This commit is contained in:
1 parent
e2ec728af3
commit
53b63ae333
2 files changed
+12
No files matched your search
@@ -68,5 +68,14 @@ export function junctionLabelForHandle(handle: EditHandle, roads: Road[], juncti
|
||||
const road = roads.find((item) => clusterAnchor.sourceRoadIds.includes(item.id));
|
||||
return `${approachName(road, roads, junction)} · ${base}`;
|
||||
}
|
||||
if (
|
||||
(handle.kind === 'cluster-carriageway-position' ||
|
||||
handle.kind === 'cluster-carriageway-direction' ||
|
||||
handle.kind === 'cluster-carriageway-edge-offset') &&
|
||||
clusterAnchor.type === 'cluster-carriageway'
|
||||
) {
|
||||
const road = roads.find((item) => clusterAnchor.sourceRoadIds.includes(item.id));
|
||||
return `${approachName(road, roads, junction)} · ${base}`;
|
||||
}
|
||||
return base;
|
||||
}
|
||||
Reference in new issue
Block a user