How hide/show labels (WAB 2.5)

651
3
Jump to solution
11-15-2017 06:33 AM
Labels (1)
HENRILEBON
New Contributor

Hello,
I want to costumize the layer list widget on WAB 2.5
I want add an hide/show labels button on the popup menu
I don't know how to hide/show labels from a sublayer.
Somebody know how to do that ?
Thanks.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Henri,

I want add an hide/show labels button on the popup menu

The widget already has a show/hide label link.

I don't know how to hide/show labels from a sublayer.

Showing a label for a sublayer is not possible as labels are for FeatureLayers and a subLayer means you are talking about a ArcGISDynamicMapServiceLayer.

View solution in original post

3 Replies
RobertScheitlin__GISP
MVP Emeritus

Henri,

I want add an hide/show labels button on the popup menu

The widget already has a show/hide label link.

I don't know how to hide/show labels from a sublayer.

Showing a label for a sublayer is not possible as labels are for FeatureLayers and a subLayer means you are talking about a ArcGISDynamicMapServiceLayer.

HENRILEBON
New Contributor

Thank Robert.

It's a pity. I cannot do what I want to do.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Henri,

Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.

0 Kudos