laptop and a wrench

Error

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

Última publicación: September 18, 2019 ArcGIS Online
Número de ID del error BUG-000124751
EnviadoAugust 23, 2019
Última modificaciónJune 5, 2024
Relacionado conArcGIS Online
Versión encontradaN/A
Sistema operativoWindows OS
Versión de sistema operativo10.0
EstadoWill Not Be Addressed

Información adicional

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.

Solución alternativa

  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

Pasos para reproducir

ID del error: BUG-000124751

Software:

  • ArcGIS Online

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga