fix: render only unified junction pavement

This commit is contained in:
que01 committed 2026-09-14 17:47:50 +08:00
1 parent 7ca57a68e6
commit a2bce9f465
1 file changed
+6 -1
+6 -1
View File
@@ -42,7 +42,12 @@ export function createLayers(
const layers: Record<LayerName, VectorLayer<VectorSource>> = {
native: new VectorLayer({
source: source(),
style: () => (scene() ? new Style({ fill: new Fill({ color: '#3f4b50' }) }) : simple('#296956')),
style: (feature) => {
if (feature.get('pavement_input')) return undefined;
if (feature.get('kind') === 'complex-pavement-region')
return scene() ? new Style({ fill: new Fill({ color: '#3f4b50' }) }) : simple('#296956');
return scene() ? new Style({ fill: new Fill({ color: '#3f4b50' }) }) : simple('#296956');
},
}),
sidewalks: new VectorLayer({
source: source(),