I am using some of the code in this sample: Legend - toggle services | ArcGIS API for JavaScript
I have substituted one of the layers that is drawn in the sample with this layer: Services Directory - LADA_Land_Use_Systems(MapServer)
For some reason the api only draws the legend but does not display the layer.
Is there any guidance on which types of layers may be used with this api or any specific settings that must be made?
Solved! Go to Solution.
That layer is not a dynamic map service, it is a Tile Service.
TiledMapServiceLayer | API Reference | ArcGIS API for JavaScript
That layer is not a dynamic map service, it is a Tile Service.
TiledMapServiceLayer | API Reference | ArcGIS API for JavaScript
That worked! Thanks for the help.