feat: drag lane turn arrows along their lanes
This commit is contained in:
1 parent
5457f960ff
commit
9cb715a592
12 files changed
+335
-24
No files matched your search
@@ -118,6 +118,7 @@ export interface LaneManeuverSelection {
|
||||
laneId: string;
|
||||
/** The current rendered maneuver; empty when the lane has no turn arrow. */
|
||||
maneuver: string;
|
||||
placementDistanceMeters?: number;
|
||||
roadId: string;
|
||||
featureIds: string[];
|
||||
}
|
||||
@@ -203,6 +204,8 @@ export function elementSelectionFor(
|
||||
kind: 'lane-maneuver',
|
||||
laneId,
|
||||
maneuver,
|
||||
placementDistanceMeters:
|
||||
typeof first.placement_distance_meters === 'number' ? first.placement_distance_meters : undefined,
|
||||
roadId,
|
||||
featureIds: members
|
||||
.map((member) => text(member.properties?.native_id))
|
||||
|
||||
Reference in new issue
Block a user