I want to add a new option in drop down of layer list widget of show label which can show the city names under a selection in map.
How can I proceed with it.
P.S i have added the option in setting.html and setting.js and is appearing in WAB edit portal to show/hide label.
but is not reflecting in main portal. Also how can I show cities name on show label and vice versa on hide label
Please find related screenshot
Any lead on this will be highly helpful
In the app web map you need to configure the layer to have labels. So in AGOL online map viewer choose the layer then the ellipse button and Create Labels.
When a layer has labels configured then the option will be there in the LayerList Widget action menu.
The labels are visible on the map when i configured from AGOL online Map. But as you told regarding the option will be available in Layer list widget action menu it is not visible.
Do anything needs to be done from code level.?
No change to code have to be made in WAB 2.6.
Here are the steps I follow and the label option is show in the map:
4. Save your web Map changes.
5. Restart WAB.
Thanks for it, Its really helpful.
But I am unable to have this show/hide label option as my layer is child layer to a parent layer. How can I have this option in child layer..
Similarly transparency option I am unable to cascade to the child level.