Members
Properties
The following table provides a list of properties of
interest. For complete reference information, see the Toc control in the
library reference section.
|
Property Name |
Type |
Description |
| BuddyControl |
string |
The Map control ID to which the Toc will be buddied to. |
| DisabledColor
|
Color |
Color to display disabled nodes, such as nodes for layers that are not visible
at the current scale. |
| ExpandDepth |
int |
Levels of the Toc's tree view to display on startup. For example, to display
all layer names and legend swatches on startup, set ExpandDepth to 2.
ExpandDepth is not automatically preserved if a full page postback occurs.
|
| PageSize |
int |
Number of layers to display per page of the Toc. When the number of layers
exceeds PageSize, links are displayed at the top of the Toc to
display additional Toc pages. |
| RenderOnDemand |
bool |
Defers rendering of legend swatches until the layer is expanded to display the
swatches. Useful when the Toc contains numerous or complex layers, or when
users rarely expand the Toc to view legend swatches.
|
| ShowLayerCheckBoxes |
bool |
Displays checkboxes for each layer, enabling the user to turn layers on and
off.
|
| ShowResourceCheckBoxes |
bool |
Displays a checkbox at the level of the resource (map service), enabling users
to turn all layers in the service on or off. Useful when multiple services are
added to the map. |
| SwatchPageSize |
int |
Maximum number of swatches to display per layer before using paging within the
layer swatches. If the number of categories within the layer exceed this value,
only this number are displayed at a time, and links are displayed at the
top of the layer legend to display additional groups of swatches for the layer.
|
| TocType |
TocType |
The default is SwatchList, which includes legend swatches, which represent
layer symbology, in the Toc. The other option is LayerList, which displays
only layer names, without legend swatches.
|