Welcome Guest, you are in: Login

FDOT Wiki

RSS RSS

GisFramework



Search the wiki
»

ToggleLayerCommand

RSS
Modified on Wednesday, 13 July 2011 11:30 AM by 156.75.200.122 Categorized as Commands
The ToggleLayerCommand allows you to turn layers on and off.


CommandVerb

togglelayer

Parameters

NameTypeDescription
MapServiceNamestringUses the map service url to gain access to the layer so it can be toggled.
LayerIdintUsed to select a specific layer.
NamestringThe name is used to collect the layer Id since the Id's can change.
SubLayersICollection<int>Holds the layer Id's for any sublayers that may fall under the layer toggled.

Code Sample

See Also

Any Questions or Comments? Email
Some of the icons created by FamFamFam.