Support 3d buildings
This commit is contained in:
parent
b49a003161
commit
3b3ab9eb9e
28
style.json
28
style.json
@ -1134,6 +1134,8 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": "openmaptiles",
|
"source": "openmaptiles",
|
||||||
"source-layer": "building",
|
"source-layer": "building",
|
||||||
|
"minzoom": 13,
|
||||||
|
"maxzoom": 14,
|
||||||
"paint": {
|
"paint": {
|
||||||
"fill-color": "hsl(35, 8%, 85%)",
|
"fill-color": "hsl(35, 8%, 85%)",
|
||||||
"fill-outline-color": {
|
"fill-outline-color": {
|
||||||
@ -1149,6 +1151,32 @@
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"layout": {
|
||||||
|
"visibility": "visible"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "building-3d",
|
||||||
|
"type": "fill-extrusion",
|
||||||
|
"metadata": {},
|
||||||
|
"source": "openmaptiles",
|
||||||
|
"source-layer": "building",
|
||||||
|
"minzoom": 14,
|
||||||
|
"paint": {
|
||||||
|
"fill-extrusion-color": "hsl(35, 8%, 85%)",
|
||||||
|
"fill-extrusion-height": {
|
||||||
|
"property": "render_height",
|
||||||
|
"type": "identity"
|
||||||
|
},
|
||||||
|
"fill-extrusion-base": {
|
||||||
|
"property": "render_min_height",
|
||||||
|
"type": "identity"
|
||||||
|
},
|
||||||
|
"fill-extrusion-opacity": 0.8
|
||||||
|
},
|
||||||
|
"layout": {
|
||||||
|
"visibility": "visible"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user