laptop and a wrench

Bug

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

Zuletzt veröffentlicht: September 18, 2019 ArcGIS Online
Bug-ID-Nummer BUG-000124751
EingereichtAugust 23, 2019
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS Online
Gefunden in VersionN/A
BetriebssystemWindows OS
Betriebssystemversion10.0
StatusWill Not Be Addressed

Zusätzliche Informationen

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.

Workaround

  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

Schritte zur Reproduzierung

Bug-ID: BUG-000124751

Software:

  • ArcGIS Online

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln