laptop and a wrench

Erro

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

Última Publicação: September 18, 2019 ArcGIS Online
Número de ID do Erro BUG-000124751
EnviadoAugust 23, 2019
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Online
Versão encontradaN/A
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0
StatusWill Not Be Addressed

Informações Adicionais

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.

Solução Provisória

  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

Etapas para Reproduzir

ID do Erro: BUG-000124751

Software:

  • ArcGIS Online

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download