AnsweredAssumed Answered

Remove Label layer from Layer List?

Question asked by LarsECinformi-dk-esridist Employee on Jul 14, 2015
Latest reply on Jul 14, 2015 by LarsECinformi-dk-esridist

Hi Guys,

 

I have a web map with a few layers, one on which I have enabled labels. I have then created an app with Web Appbuilder Developer Edition (WAB), based on this web map. My issue is then, that in the layer list in the WAB, the labels are added as an individual layer. I don't want that to be visible for the users. They have to be able to see the labels in the map itself of course, but not in the layer list.

 

So I found this other thread:

https://community.esri.com/thread/126201

 

which says that you can remove layers in the WAB from the layer list by their ID (from the web map's JSON). But the label layer is not added as a layer in the web map, and is therefore not to be found in the web map's JSON.

 

Has anyone come across this issue before?

 

P.S. The funny thing is that in the online version of the WAB, labels are not added to the layer list....!

 

Thanks

Lars

Outcomes