AnsweredAssumed Answered

Get layer types for all layers in map service

Question asked by greenkarmic on Feb 8, 2016
Latest reply on Feb 8, 2016 by greenkarmic

Good morning,


I'm wondering if there's an easy way to get the layer types for all the layers in a map service. By layer "type" I mean: Group Layer, Raster Layer, Annotation Layer, Annotation SubLayer, Feature Layer, etc..




When I check the layerInfos array of my ArcGISDynamicLayer, it will tell me the layer id, parent id, etc.. but it won't tell me what the layer type is. I know I could create a FeatureLayer for each layer to get this info, but that would generate more then a hundred requests since the map service has several layers.


My goal is to get a list of all the layers with the "Feature Layer" type in the map service.