cesiumlab / cesiumlab/XbsjEarthUI

我想点击某一建筑可以实现吗

Open
#55 0 comments 0 reactions 0 assignees View on GitHub
documentation question
Dominant language
JavaScript
Stars
734
Forks
193
PR merge metrics
No merged PRs in 30d

Description

![image](https://user-images.githubusercontent.com/13550568/70223479-bea8a000-1786-11ea-8dc5-ab481377ae76.png)

@vtxf 大佬,我想点击某一建筑可以实现吗?

---

是的,shp中每栋楼有id属性的话,就可以点击获取响应的数据

拾取tileset中单个部件的话,还需要使用Cesium原生API scene.pick来操作,拾取到相应的id后,再根据id设置style
不能用onclick

Contributor guide

No contributing guide indexed for this repository

Research direction

No repository files or tests are named. Start by reviewing the Cesium scene.pick flow and the tileset or SHP building identifiers described in the issue; the work would need a defined selection behavior and confirmation that the selected building can be mapped by id and styled.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.