Layer list widget tag
This page describes an older version, please read about the latest version at:
http://resources.arcgis.com/en/help/flex-viewer/concepts/
http://resources.arcgis.com/en/help/flex-viewer/concepts/
Configuration file for Layer List Widget
The general structure of the the Layer List widget configuration file is shown by the conceptual graphic below.
The file is defined by a <configuration> tag that identifies it as a configuration file for the Viewer. It supports the following child tags:
- <expandlayeritems>
- If true, the widget will expand all the individual items in the tree. The default is false. [Added in version 2.5]
- <excludelayer>
- When a layer is
specified (by its name which should match the layer name in the
Viewer application's main configuration file), it will not display
in the Layer List widget. Multiple excludelayer tags can be
specified if you want to exclude multiple layers.
Example for excluding layers from Layer List widget:
In main configuration file: <layer label="thelayername".../> In the widget configuration file: <excludelayer>thelayername</excludelayer>
Labels
In addition, the configuration file also supports changing the labels used in the widget dialog (this is not shown in the conceptual graphic).
- <labels>
- Container for labels
that can be modified in this widget. It has one child tag:
- <title>
- Widget dialog title
(default for English is "Layer Visibility")..
Example for changing the widget dialog title for Layer List widget:
In the widget configuration file: <labels> <title>My List of Layers</title> </labels>
2/15/2012