Increase the height of the Layer List in the MapSwitcher Widget

3829
1
02-03-2015 07:21 PM
AndrewNiederhauser1
New Contributor III

I'm trying to lengthen the "More..." layer list that is used with the basemap switcher.

I know that adding the height tag like below to the widget reference in the main .config file will increase the height of the layer list widget.

height="200" when opened. However, I want to lengthen the "More..." layer list that comes in next to the basemap switcher. Any help would be appreciated.

Version 3.6

Thanks,

Andrew

0 Kudos
1 Reply
AnthonyGiles
Frequent Contributor

Andrew,

There are no settings in the config that you can change to make the list longer, you will need to change the source code if you have that ability. The required change is in the MapSwitcherWidget.mxml and you are looking for the BorderContainer  called "opLayersContainer" on line 469:

arcgis-viewer-flex/MapSwitcherWidget.mxml at develop · Esri/arcgis-viewer-flex · GitHub

You can see the current height is set to 180 you would need to increase that.

Regards

Anthony

0 Kudos