0
这就是我的意思。Mapbox - 如何以foursquare的方式显示建筑物?
看看下面的截图来自四方的
然而,使用街景,这里是同一区域看起来像我的地图在同一缩放级别:
正如你所看到的,建筑物不会出现。我怎样才能让这些建筑物出现?
这就是我的意思。Mapbox - 如何以foursquare的方式显示建筑物?
看看下面的截图来自四方的
然而,使用街景,这里是同一区域看起来像我的地图在同一缩放级别:
正如你所看到的,建筑物不会出现。我怎样才能让这些建筑物出现?
如果您使用mapbox的gl-js API比我可能知道解决方案。 我想你需要添加另一层,我这样做(将下面的代码添加到您的客户端javascritpt文件):
`map.on('load', function() {
map.addLayer({
'id': '3d-buildings',
'source': 'composite',
'source-layer': 'building',
'filter': ['==', 'extrude', 'true'],
'type': 'fill-extrusion',
'minzoom': 14,
'paint': {
'fill-extrusion-color': '#aaa',
'fill-extrusion-height': {
'type': 'identity',
'property': 'height'
},
'fill-extrusion-base': {
'type': 'identity',
'property': 'min_height'
},
'fill-extrusion-opacity': .6
}
});
});`