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?
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.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.