laptop and a wrench

Bug

The LayerList widget does not work with the MapImageLayer containing a sublayer.

Last Published: April 25, 2017 ArcGIS API for JavaScript
Bug ID Number BUG-000103521
SubmittedMarch 9, 2017
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.3
Operating SystemN/A
Operating System VersionN/A
StatusKnown Limit

Additional Information

This is documented at https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#sublayers. Where it states, 'All sublayers are referenced in the order in which they are drawn in the view (bottom to top). They may be added, removed, or reordered using the Collection methods." In order to specify the sublayers in a certain order, please use the Collection reorder method.

Workaround

The issue is that when Supports Dynamic Layers is true, the LayerList widget will renders correctly, however, when Supports Dynamic Layers is false, in order to make two sublayer show correctly in the map, instantiate the layer id order in a descending order, if using an ascending order the sublayer does not render, and the request are different.

Steps to Reproduce

Bug ID: BUG-000103521

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