feat(junction): add reference geometry comparison layer

This commit is contained in:
que01 committed 2026-09-07 16:45:37 +08:00
1 parent 4519cad562
commit 92ab2edd96
11 files changed
+107 -5

No files matched your search

+11
View File
@@ -20,6 +20,7 @@ export type LayerName =
| 'native'
| 'sidewalks'
| 'osm'
| 'reference'
| 'lanes'
| 'edgeLines'
| 'directionArrows'
@@ -66,6 +67,15 @@ export function createLayers(
: undefined,
}),
}),
reference: new VectorLayer({
source: source(),
visible: false,
opacity: 0.55,
style: new Style({
fill: new Fill({ color: '#7c3aed22' }),
stroke: new Stroke({ color: '#7c3aed', width: 2, lineDash: [6, 4] }),
}),
}),
lanes: new VectorLayer({
source: source(),
style: new Style({ stroke: new Stroke({ color: '#f5f6ee', width: 1.5, lineDash: [5, 4] }) }),
@@ -224,6 +234,7 @@ export function updateLayers(
);
put('osm', { type: 'FeatureCollection', features: [] });
get('osm').addFeatures(roads);
put('reference', state.junctionReference?.converted);
put('lanes', state.layers.laneCenterlines);
put('edgeLines', state.layers.edgeLines);
put('directionArrows', state.layers.directionArrows);