laptop and a wrench

Bogue

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

Dernière publication: April 25, 2017 ArcGIS API for JavaScript
Numéro d’ID de bogue BUG-000103521
EnvoiMarch 9, 2017
Dernière modificationJune 5, 2024
S’applique àArcGIS API for JavaScript
Version trouvée4.3
Système d’exploitationN/A
Version du système d’exploitationN/A
StatutKnown Limit

Informations supplémentaires

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.

Solution de contournement

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.

Étapes pour reproduire

ID de bogue: BUG-000103521

Logiciel:

  • ArcGIS API for JavaScript

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement