The ShowLayersCommand allows layers to be turned on through script.
CommandVerb¶
"al"
Parameters
The ShowLayersCommand takes a ShowLayersCommandParameters object.
Name | Type | Description |
---|
LayerIds | IEnumerable | This 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