Mapbox GL 3D单一建筑物突出显示选择 [英] Mapbox GL 3D single building highlight selection

查看:791
本文介绍了Mapbox GL 3D单一建筑物突出显示选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当悬停在单个3D建筑物上时,如何突出显示它? OSM建筑物突出显示功能.看来Mapbox Streets V7建筑图层的要素属性太少了,它仅包含:

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:

挤出 高度 min_height 类型 地下

extrude height min_height type underground

没有独特的属性可以区分建筑物.有没有办法包含建筑物的地址或一些唯一的ID?

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

推荐答案

我认为Mapbox Streets v7磁贴集中不存在唯一的每建筑物id.您可能需要构建自己的tileet才能获得所需的行为.

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.

这篇关于Mapbox GL 3D单一建筑物突出显示选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆