Hi Everybody:
I am developing a silverlight application that displays an ArcGISDynamicMapServiceLayer in a Map.
Among all the sub-layers, I want to identify all the Feature Layers and do some corresponding process. However, I haven't found a good way to distinguish Feature Layers from all the others (such as Group Layers, Annotation Layers, and Annotation Sublayers).
The following code can exclude all the Group Layers, but not Annotation Layers:
***********************************************
foreach (LayerInfo subLayer in tempDynamicLayer.Layers)
{
if (subLayer.SubLayerIds == null)
{
// do something
}
}
***********************************************
Is there any better way?
Thank you!
My development environment:
-- .Net 4
-- Silverlight 4
-- Visual Studio 2010