Mapbox GL 3D single building highlight selection

纵然是瞬间 提交于 2019-12-10 11:05:35

问题


How can I highlight one single 3D building when hover over it? Something like the OSM buildings highlight feature. It seems the mapbox streets v7 building layer feature properties are so few, it only includes:

extrude height min_height type underground

There is no unique property to differentiate the building. Is there a way to include the address of the building or some unique ID?


回答1:


I do not think there is a unique per-building id in the Mapbox Streets v7 tileset. You may need to build your own tileset to get the desired behavior.



来源:https://stackoverflow.com/questions/40298274/mapbox-gl-3d-single-building-highlight-selection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!