Select to view content in your preferred language

ArcGISDynamicServiceLayer & GenerateRendererTask - innocent question...

434
2
10-25-2012 09:24 AM
MiriEshel
Esri Contributor
Hi all,

If I look at the sample:
http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#GenerateRenderer
I see that there is a definition for ArcGISDynamicServiceLayer in the xaml file:
  <esri:ArcGISDynamicMapServiceLayer ID="USA"   
    Url="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer"
                VisibleLayers="2" />

But.... the generateRendererTAsk has its own URL:
generateRendererTask.Url = "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/2"

How can I know if it uses a FeatureLayer or DynamicLayer? because it doesn't take the definition of the ArcGISDynamicMapServiceLayer from the xaml?

Thanks and my apologies for my ignority...

Miri
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
The 'GenerateRenderer' functionality is supported by the feature layer rest end point since the renderer is defined by layer.

You can verify that by looking at the feature layer rest end point : http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/2, you'll see the GenerateRenderer functionality at the bottom of the page.
0 Kudos
MiriEshel
Esri Contributor
Hi Dominique,

Thank you for your reply.
So, as I understand, the GenerateRendererTask does not use ArcGISDynamicServiceLayer, is that correct?
If so, how does it control the layerDrawingOption etc. that is typical to ArcGISDynamicServiceLayer?

Thanks again,
Miri
0 Kudos