feat: solve complete junction island contacts

This commit is contained in:
que01 committed 2026-09-14 08:59:32 +08:00
1 parent 7a7912f302
commit 1b91e280bc
5 files changed
+164 -7

No files matched your search

+6 -1
View File
@@ -46,7 +46,12 @@ export function createLayers(
}),
sidewalks: new VectorLayer({
source: source(),
style: () => (scene() ? new Style({ fill: new Fill({ color: '#b7b9ad' }) }) : simple('#9b7c40')),
style: (feature) =>
feature.get('kind') === 'island-green'
? new Style({ fill: new Fill({ color: '#35b86a' }), zIndex: 1 })
: scene()
? new Style({ fill: new Fill({ color: '#b7b9ad' }) })
: simple('#9b7c40'),
}),
osm: new VectorLayer({
source: source(),