AnsweredAssumed Answered

Javascript Map Layer Type

Question asked by bridgji on Oct 8, 2014
Latest reply on Oct 9, 2014 by bridgji

I have a map with an unknown number of  feature layers and  raster layers. I need to be able to identify if a layer is a raster layer or a feature layer.  I can't seem to find any where this is exposed. I tried looking in the map.getLayer("baseLayer").layerInfos collection but it doesn't have the type. In the Silverlight API I found this information when the legened was refreshed by checking the layerType field in the layeritems . I can't seem to find anything similar in the javascript api.

 

Thanks

Jim

Outcomes