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.

Last Published: September 18, 2019 ArcGIS Online
Bug ID Number BUG-000124751
SubmittedAugust 23, 2019
Last ModifiedJune 5, 2024
Applies toArcGIS Online
Version foundN/A
Operating SystemWindows OS
Operating System Version10.0
StatusWill Not Be Addressed

Additional Information

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

Steps to Reproduce

Bug ID: BUG-000124751

Software:

  • ArcGIS Online

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options