laptop and a wrench

Bug

WebTiledLayers cannot be added to the map if the spatial reference of the service is not 102100 in the ArcGIS API for JavaScript 4.5.

Last Published: December 13, 2017 ArcGIS API for JavaScript
Bug ID Number BUG-000110133
SubmittedDecember 12, 2017
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.5
StatusWill Not Be Addressed

Additional Information

Updated the code snippet that was originally submitted with the issue to work, please refer to https://codepen.io/anon/pen/xeyKyW?&editable=true&editors=100 for working example.

Workaround

Add the following parameter to the constructor of the WebTiledLayer:

spatialReference: new SpatialReference(<service's spatial reference>);

Steps to Reproduce

Bug ID: BUG-000110133

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