laptop and a wrench

Bug

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.

Last Published: March 6, 2018 ArcGIS API for JavaScript
Bug ID Number BUG-000111006
SubmittedJanuary 22, 2018
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.6
Operating SystemWindows OS
Operating System Version2012 R2
StatusKnown Limit

Additional Information

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.

Steps to Reproduce

Bug ID: BUG-000111006

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options