The ListLayersCommand returns a array of LayerInfo for all dynamic layers on the map. This can be used to generate client side toc or list of all of layers for the map.
CommandVerb¶
"listlayers"
Code Sample
FDOT.Map.executeCommand('listlayers', null,
function (r)
{
//Do Something
});
See Also