Bug
| Bug-ID-Nummer | BUG-000127418 | 
|---|---|
| Eingereicht | December 16, 2019 | 
| Zuletzt geändert | July 20, 2025 | 
| Gilt für | ArcGIS API for JavaScript | 
| Gefunden in Version | 4.13 | 
| Betriebssystem | Windows OS | 
| Betriebssystemversion | 10.0 64 Bit | 
| Behoben in Version | 4.15 | 
| Status | Fixed | 
Add the additional code to reflect the changes within the Legend.
Uncomment line 39-58 in the codepen sample to see the changes:
if(true){
LegendViewModel.prototype._addActiveLayerInfo = function(e, t) {
if (this._isLayerActive(t) && -1 === this.activeLayerInfos.indexOf(e)) {
var r = e.parent;
if(r){
if(-1 === r.children.indexOf(e)){
r.children.push(e)
};
this._sortActiveLayerInfos(r.children)
}else{
this.activeLayerInfos.add(e);
this._sortActiveLayerInfos(this.activeLayerInfos);
}
}
}
}
Bug-ID: BUG-000127418
Software:
Unterstützung durch ArcGIS-Experten anfordern
Esri Support App herunterladen