找到這里3dtiles的兩種訪問方式:
1.1 3DTileContent#getFeature? ?
這里涉及3DTile 數據結構,暫不了解3DTile 數據結構,因此暫不使用。
1.2 scene.pick? ?
本次使用
scene表示虛擬場景中所有 3D 圖形對象和狀態的容器;scene中pick方法:
scene.pick(windowPosition, width, height)
windowPosition Cartesian2 Window coordinates to perform picking on.
width number 3 optionalWidth of the pick rectangle.
height number 3 optionalHeight of the pick rectangle.
- 缺點只支持Cartesian2? 即窗口坐標,窗口坐標無法作為唯一經緯度坐標。但能湊活用。