fix: render only unified junction pavement
This commit is contained in:
1 parent
7ca57a68e6
commit
a2bce9f465
1 file changed
+6
-1
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user