Welcome Guest, you are in: Login

FDOT Wiki

RSS RSS

GisFramework



Search the wiki
»

ShowLayersCommand

RSS
Modified on Monday, 03 June 2013 01:45 PM by 156.75.200.241 Categorized as Commands
The ShowLayersCommand allows layers to be turned on through script.


CommandVerb

"al"

Parameters

The ShowLayersCommand takes a ShowLayersCommandParameters object.

NameTypeDescription
LayerIdsIEnumerableThis is the list of layers that will be turned on.

Code Sample


 FDOT.Map.executeCommand('al',
{
  "LayerIds":[
             {
               "MapServiceName":"gev-dynamic",
               "LayerName":"1" // the layer id (All Crashes in this instance)
}
]
});

See Also

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