Select to view content in your preferred language

How to set Enable/Disable property for a sublayer of an ArcGISDynamicMapServiceLayer?

568
0
10-07-2013 01:52 AM
CatalinBrad
Emerging Contributor
Hi,

   I have a layers collection of type FeatureLayer and DynamicMapServiceLayers to show in a map from a Silverlight app. To be able to achieve the popup behavior in the current map, for the layers of FeatureLayer types I run the command (the code is in C#): ESRI.ArcGIS.Client.Extensibility.LayerProperties.SetIsPopupEnabled(mLayer, true); This is working and I have the popup shown once I clicked an element from this layer in the map.
  The layer of type DynamicMapServiceLayers contains 2 sublayers. Executing the previous command for this layer is not enough. I presume that I have to enable the same behavior for these 2 sublayers, but I don't know how.
   Can you please help? Thank you.
0 Kudos
0 Replies