In the ArcGIS API for JavaScript 4.6, a latitude and longitude coordinate cannot be used as a parameter to the view's goTo method if the scene uses certain spatial references.
上次发布: March 6, 2018ArcGIS API for JavaScript
漏洞 ID 编号
BUG-000111006
已提交
January 22, 2018
上次修改时间
June 5, 2024
适用范围
ArcGIS API for JavaScript
找到的版本
4.6
操作系统
Windows OS
操作系统版本
2012 R2
状态
Known Limit
经开发团队审核,已确定此问题与不受 Esri 控制的软件的已知限制有关。 问题的“其他信息”部分可能包含进一步说明。
附加信息
Currently there is no support for reprojecting from and to other coordinate systems than WGS84 and WebMercator on the client-side. This is why passing in latitude and longitude in view.goto() with the scene in 28356 doesn't work. It also doesn't work in 4.5. Pass in some other coordinates and remove the heading and the camera doesn't move.
What was changed in 4.6 is to show an error message, so that the user is aware what the problem is.
This is likely to change when the projectionEngine is implemented on the client-side, but I don't know how soon that will be completed. The best workaround is to add a library that takes care of the projection conversion, or to pass in coordinates directly in the spatial reference of the scene.