AnsweredAssumed Answered

Finding service layer 'declaredClass' property (type) in AMD?

Question asked by sarahclark on Jul 1, 2014
Latest reply on Jul 2, 2014 by jeff.pace
I've found numerous threads discussing 'layer.declaredClass' as a way to get to the type of service for a layer in a map (e.g. ArcGISDynamicMapServiceLayer, FeatureLayer, etc.).

The only documentation linked was to a Dojo widget's class, so I am unsure how to work this on a map layer. I tried simply using layer.declaredClass but it was undefined. The API documentation doesn't seem to mention this property, and the only service type with a 'type' property is FeatureLayer. Any help appreciated!

Related threads: