Use a layer's has a declaredClass property to figure out what kind of layer it is. For instance, declaredClass for a tiled layer is "esri.layers.ArcGISTiledMapServiceLayer".
Hi Derek,Could you please help provide some link to the documentation that states the information for declaredClass or if there are any more methods available. I tried to search through the API documentation but was not able to find anything related to layer.declaredClass Although it works as a great solution to my issue I am just curious to know how does this work and what other methods or properties are available.Thanks in advance!!!!Best Regards,Manish
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.