feat: drag lane turn arrows along their lanes

This commit is contained in:
que01 committed 2026-09-01 10:24:59 +08:00
1 parent 5457f960ff
commit 9cb715a592
12 files changed
+335 -24

No files matched your search

+3
View File
@@ -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))