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>> = {
|
const layers: Record<LayerName, VectorLayer<VectorSource>> = {
|
||||||
native: new VectorLayer({
|
native: new VectorLayer({
|
||||||
source: source(),
|
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({
|
sidewalks: new VectorLayer({
|
||||||
source: source(),
|
source: source(),
|
||||||
|
|||||||
Reference in new issue
Block a user