【发布时间】:2020-04-08 18:42:28
【问题描述】:
我想强调一个事实,即在我的地图中土地比水高,所以想在土地图层中添加一个挤压。我认为使用建筑物的https://docs.mapbox.com/mapbox-gl-js/example/3d-buildings/ 并将图层源更改为“土地”会起作用,但它没有。这是特定于构建层的东西还是我做错了什么?这是我的样式 JSON 中的层定义:
{
"id": "3d-land",
"source": "composite",
"source-layer": "land", # Changed this from building
"filter": ["==", "extrude", "true"],
"type": "fill-extrusion",
"minzoom": 0,
"paint": {
"fill-extrusion-color": "#000",
"fill-extrusion-height": [
"interpolate", ["linear"], ["zoom"],
15, 0,
18.0, 30.0
],
"fill-extrusion-base": [
"interpolate", ["linear"], ["zoom"],
15, 0,
18.0, ["get", "min_height"]
],
"fill-extrusion-opacity": 0.8
}
}
【问题讨论】:
标签: mapbox