AnsweredAssumed Answered

URL parameters for Web Mapping Application - how to switch on layers?

Question asked by Gdi_bx on Jun 28, 2017
Latest reply on Sep 11, 2017 by KGerrow-esristaff

I want to generate an URL parameter that querys a layer (that is not switched on in my WebMap) in a Web Mapping Application and turn on the queried layer.

 

It works so far that the feature is correctly queried, but because the layer is not swiched on, the symbol for the feature is not shown. Looks like this:

So I want to turn on the layer visibility so that the symbol is shown.

 

I found that for a Web Map URL the parameter could be "layers=show:layernumber" (described here: http://doc.arcgis.com/de/arcgis-online/reference/use-url-parameters.htm#ESRI_SECTION1_39BECEFA9E1942B6AB9019C425DDD0C9 )

But this is not working for the Web Application URL. 

 

Is there a parameter that works for the Application URL?

The URL with the query so far looks like this:

https://ORGANIZATION.maps.arcgis.com/apps/webappviewer/index.html?id=APP-ID&query=LAYERNUMBER,objectid,1

Outcomes