laptop and a wrench

不具合

The layers order within the Legend is not updated if the order of the layers on the map is changed.

最後に公開された状態: April 6, 2020 ArcGIS API for JavaScript
不具合 ID 番号 BUG-000127418
送信されましたDecember 16, 2019
最終更新日July 20, 2025
適用対象ArcGIS API for JavaScript
見つかったバージョン4.13
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
修正されたバージョン4.15
ステータス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);

         }

       }

     }

    }

再現の手順

不具合 ID: BUG-000127418

ソフトウェア:

  • ArcGIS API for JavaScript

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動