jvillajos

How I can Acces to the Renderer of layer of a LocalMapService

Discussion created by jvillajos on Dec 13, 2012
Latest reply on Jan 7, 2013 by MBranscomb-esristaff
Hi,


How can I access the properties of a layer rendering of a LocalMapService?

I try get the next code to obtein the layers details

Layer l = Map.Layers[0]

if (l is ArcGISLocalDynamicMapServiceLayer)
{
     ArcGISLocalDynamicMapServiceLayer localDyn = l as ArcGISLocalDynamicMapServiceLayer;
     foreach (LayerDetails ld in localDyn.Service.MapLayers)
     {

      ...
     }
}


The LayerDetails has not Symbol property to obtein the renderer of the layer.
The LayerDetails has a Url with the local service. It can be read and get the Renderer but this
is not very dynamic. Is there any way to get the layer renderer?

Jesús Villajos Novillo

Software Engineer.


th

Outcomes