The LayerList widget does not work with the MapImageLayer containing a sublayer.
上次发布: April 25, 2017ArcGIS API for JavaScript
漏洞 ID 编号
BUG-000103521
已提交
March 9, 2017
上次修改时间
June 5, 2024
适用范围
ArcGIS API for JavaScript
找到的版本
4.3
操作系统
N/A
操作系统版本
N/A
状态
Known Limit
经开发团队审核,已确定此问题与不受 Esri 控制的软件的已知限制有关。 问题的“其他信息”部分可能包含进一步说明。
附加信息
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.
解决办法
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.