WAB LayerList widget

2569
1
12-12-2014 11:35 AM
CocoZhu
New Contributor II

I have a custom widget, with which I can add new map service layers produced by my gp services to the basemapt, and the layers appear in LayerList widget. But the labels of the layers in the widget are layer1, layer2... sub-labels are empty, not the names of the layers. How to make it show actual meaningful names of layers? Any suggestions will be appreciated much.

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Coco,

   Can you share a code snippet of this?

add new map service layers produced by my gp services to the basemapt

Are you actually adding layer to a basemap  or do you mean the map?

0 Kudos