laptop and a wrench

不具合

In Web AppBuilder, the hideLayers URL parameter does not work for layer IDs and multiple layers cannot be separated by commas.

最後に公開された状態: September 18, 2019 ArcGIS Online
不具合 ID 番号 BUG-000124751
送信されましたAugust 23, 2019
最終更新日June 5, 2024
適用対象ArcGIS Online
見つかったバージョンN/A
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0
ステータスWill Not Be Addressed

参考情報

Layer ID is not the same as the layer number. The Layer ID needs to be retrieved from the web map's /data call: http:///sharing/rest/content/items//data/?f=pjson. When using the correct layer ID, the functionality works as expected.

対処法

  1. To hide layers, the only option is to use the full layer name. Copying and pasting the layer name from the legend in Web AppBuilder is a good way to do this. When the full layer name is used, the URL parameter hides the layer correctly. Syntax: &hideLayers=<full layer name>. URL as configured: https://ess.maps.arcgis.com/apps/webappviewer/index.html?id=d2f4f0029b5a4f4a9cdb200cfc5476ff&hideLayers=UV_Polys%20-%20DRD_Artwork_test
  2. To hide multiple layers, the workaround is to use either a semicolon or the characters %3B, as described in a similar bug for showLayers, BUG-000121304. Syntax: &hideLayers=<full layer name>;<full layer name> or &hideLayers=<full layer name>%3B<full layer name>. URL as configured with the use of the semicolon: https://ess.maps.arcgis.com/apps/webappviewer/index.html?id=d2f4f0029b5a4f4a9cdb200cfc5476ff&hideLayers=UV_Polys%20-%20DRD_Artwork_test;UV_Polys%20-%20polytest. URL as configured with the use of %3B: https://ess.maps.arcgis.com/apps/webappviewer/index.html?id=d2f4f0029b5a4f4a9cdb200cfc5476ff&hideLayers=UV_Polys%20-%20DRD_Artwork_test%3BUV_Polys%20-%20polytest
    1. Note: using the layer IDs still does not work with this option, as seen with this URL. https://ess.maps.arcgis.com/apps/webappviewer/index.html?id=d2f4f0029b5a4f4a9cdb200cfc5476ff&hideLayers=0%3B1

再現の手順

不具合 ID: BUG-000124751

ソフトウェア:

  • ArcGIS Online

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

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

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

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

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

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

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