The onMouseClicked method does not capture the z-values of 3D BIM data buildings in ArcGIS AppStudio.
ArcGIS AppStudio
漏洞 ID 编号
BUG-000160232
已提交
July 27, 2023
上次修改时间
August 16, 2024
适用范围
ArcGIS AppStudio
找到的版本
5.5
操作系统
Windows OS
操作系统版本
10.0 64 Bit
状态
As Designed
经开发团队审核,已确定此行为符合设计。 有关详细信息,请参阅“其他信息”部分。
附加信息
To capture the Z value, use the SceneView.screenToLocation (x, y) method and the onScreenToLocationCompleted event handler instead.
SceneView {
id: sceneView
anchors.fill: parent
onMouseClicked: {
var location = sceneView.screenToLocation(mouse.x, mouse.y);
}
onScreenToLocationCompleted: {
var hasZValue = location.hasZ;
var zValue = location.z;
}
// Other scene view code...
)
API References:
- string screenToLocation(double screenX, double screenY) | https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-sceneview.html#screenToLocation-method
- screenToLocationCompleted(Point location) | https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-sceneview.html#screenToLocationCompleted-signal