laptop and a wrench

Bug

In JavaScript API 2.4, SpatialReference.toJson () does not work and throws error.

Last Published: August 25, 2014 ArcGIS API for JavaScript
Bug ID Number NIM070671
SubmittedJuly 21, 2011
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version foundOther
Program languageJavaScript
StatusNon-Reproducible

Additional Information

No Public Explanation

Workaround

Modify the code that sets the extent to specify a spatial reference using the format below.var extent = esri.geometry.Extent(x + 500, y - 500, x - 500, y + 500, new esri.SpatialReference({ wkid:102100 })).expand(5);

Steps to Reproduce

Bug ID: NIM070671

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