是否有方法挤出地图上的mapbox点的高度?
有没有办法在地图上挤出mapbox点的高度? 具有以下示例:是否有方法挤出地图上的mapbox点的高度?,mapbox,Mapbox,有没有办法在地图上挤出mapbox点的高度? 具有以下示例: map.addSource("markers", { "type": "geojson", "data": { "type": "FeatureCollection", "features": [{ "type": "Feature", "geometry": {
map.addSource("markers", {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [14.422063225409431,50.08273361716846]
},
"properties": {
"height": 12,
"base_height": 10,
"title": "Mapbox DC",
"marker-symbol": "spaceti-maintenance"
}
}, {
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [14.421896271941648,50.08259946060207]
},
"properties": {
"height": 12,
"base_height": 10,
"title": "Mapbox SF",
"marker-symbol": "spaceti-maintenance"
}
}]
}
});
map.addLayer({
"id": "markers",
"source": "markers",
//"type": "symbol",
"type":"fill-extrusion",
// "layout": {
// "icon-image": "{marker-symbol}",
// "text-field": "{title}",
// "text-font": ["Open Sans Semibold", "Arial Unicode MS Bold"],
// "text-offset": [0, 0.6],
// "text-anchor": "top"
// },
"paint": {
// See the Mapbox Style Spec for details on property functions
// https://www.mapbox.com/mapbox-gl-style-spec/#types-function
"fill-extrusion-color": "#424242",
"fill-extrusion-height": {
// Get fill-extrusion-height from the source "height" property.
"property": "height",
"type": "identity"
},
"fill-extrusion-base": {
// Get fill-extrusion-base from the source "base_height" property.
"property": "base_height",
"type": "identity"
},
// Make extrusions slightly opaque for see through indoor walls.
"fill-extrusion-opacity": 0.90
}
});
假设我想要具有自定义图标+拉伸高度的标记,我是否能够同时使用层的布局和绘制属性?我正在构建多楼层的室内导航,这就是原因。此时不可能挤出点,但是,可以将这些点转换为(小)圆,并根据值挤出它们。这里似乎有一些类似的点云支持请求:
因此,如果它进入新版本,您可能能够跟踪进度。您是否介意添加一个示例,说明如何根据我的值挤出圆。我在这里也问了一个问题(),你是否愿意在那里回答这个问题以获得额外的业力。你成功地让它工作了吗?目前有同样的问题: