<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Changing Renderer on Sublayer in ArcGISDynamicMapServiceLayer in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-renderer-on-sublayer-in/m-p/639068#M16436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From API version 3.0 and server 10.1, you can change the symbology dynamically (if the functionality has been enabled at the server side).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a sample here : &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#DynamicLayer"&gt;http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#DynamicLayer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using that, you might change by code the symbology depending on the layers that are turned on (though will need some development)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jul 2012 06:42:46 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2012-07-17T06:42:46Z</dc:date>
    <item>
      <title>Changing Renderer on Sublayer in ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-renderer-on-sublayer-in/m-p/639067#M16435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's my situation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using a DynamicMapServiceLayer to populate a Legend/TOC widget. Everything loads fine, with groupings and sublayers and legends showing up fine. Now, all of the layers in a specific group are of the GeometryType esriGeometryPolygon. This works fine when viewing a single layer, however, displaying a second layer on top of that layer covers up the first layer, making the map not very useful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For instance, this is our Layout:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Indicators&lt;/STRONG&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Layer A&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Layer B&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Layer C&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Layer D&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Layer E&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;What we'd like to do is have the first layer that's checked in the TOC be a Polygon, then the second layer (if one gets checked) that is displayed on top to be displayed as say, Circle markers of various sizes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, for instance, if a user checks Layer B to be displayed, it's a Polygon. Then, if they check the box next to Layer D, instead of it rendering as a Polygon, it renders as Circles of various sizes, to allow the user to compare the data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if the user just checks Layer D by itself, it gets rendered as a Polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to accomplish this? I can access the individual layers just fine and I can handle capturing the event of which layer has been Checked in the TOC. The issue comes down to changing the rendering of the layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is how we'd like the final outcome to look like (I used two different layers to display the example here)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]16135[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 18:35:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-renderer-on-sublayer-in/m-p/639067#M16435</guid>
      <dc:creator>GeoffreyGauchet</dc:creator>
      <dc:date>2012-07-16T18:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Renderer on Sublayer in ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-renderer-on-sublayer-in/m-p/639068#M16436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From API version 3.0 and server 10.1, you can change the symbology dynamically (if the functionality has been enabled at the server side).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a sample here : &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#DynamicLayer"&gt;http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#DynamicLayer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using that, you might change by code the symbology depending on the layers that are turned on (though will need some development)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 06:42:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-renderer-on-sublayer-in/m-p/639068#M16436</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2012-07-17T06:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Renderer on Sublayer in ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-renderer-on-sublayer-in/m-p/639069#M16437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks... I've looked at that previously, but the issue lies in that each layer doesn't have the same units or class breaks. That example looks like it requires you to set up the class breaks in the code, which won't work here. Some layers are integers, some are percentages, some are decimals, etc. And having the same units doesn't necessarily mean that the class breaks are the same. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, for instance, Layer A may show the Asian Population for a neighborhood, which would be an percentage. Layer B might show Average Income for residents in neighborhood, which would be dollar amounts. I'd like to allow users to enable the Asian Population layer (which would be polygons) and then enable the Average Income on top of that, and it would show the circle symbols on top.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at that example, it looks like I'd have to handle the class breaks depending on each layer, which I can't really hardcode.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 15:58:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-renderer-on-sublayer-in/m-p/639069#M16437</guid>
      <dc:creator>GeoffreyGauchet</dc:creator>
      <dc:date>2012-07-17T15:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Renderer on Sublayer in ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-renderer-on-sublayer-in/m-p/639070#M16438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/apiref/api_start.htm?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~CreateDynamicLayerInfosFromLayerInfos.html"&gt;ArcGISDynamicMapServiceLayer.CreateDynamicLayerInfosFromLayerInfos&lt;/A&gt;&lt;SPAN&gt; in order to get the renderers defined at the server side.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using that as starting point will avoid you to create class breaks renderer by code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 16:41:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-renderer-on-sublayer-in/m-p/639070#M16438</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2012-07-17T16:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Renderer on Sublayer in ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-renderer-on-sublayer-in/m-p/639071#M16439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Still not having any luck with this. I used the CreateDynamicLayerInfosFromLayerInfos method to get a DynamicLayerInfoCollection. This is the result of that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]16344[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can see, there's nothing about the renderer returned. Am I missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the Drawing Info for this layer on the server:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]16345[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 19:33:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-renderer-on-sublayer-in/m-p/639071#M16439</guid>
      <dc:creator>GeoffreyGauchet</dc:creator>
      <dc:date>2012-07-23T19:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Renderer on Sublayer in ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-renderer-on-sublayer-in/m-p/639072#M16440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For what it's worth, every example code I use just renders the layer exactly like the original, even when duplicating the layer, for example, the code here just dupes the entire map service and renders exactly the same&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/apiref/api_start.htm?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.LayerDrawingOptionsCollection.html"&gt;http://resources.arcgis.com/en/help/silverlight-api/apiref/api_start.htm?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.LayerDrawingOptionsCollection.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 20:15:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-renderer-on-sublayer-in/m-p/639072#M16440</guid>
      <dc:creator>GeoffreyGauchet</dc:creator>
      <dc:date>2012-07-23T20:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Renderer on Sublayer in ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-renderer-on-sublayer-in/m-p/639073#M16441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are right the renderers are part of &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~LayerDrawingOptions.html"&gt;LayerDrawingOptions &lt;/A&gt;&lt;SPAN&gt;and not of &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~DynamicLayerInfos.html"&gt;DynamicLayerInfos &lt;/A&gt;&lt;SPAN&gt;as I suggested.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get the renderers defined at server side you can use &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~GetDetails.html"&gt;GetDetails &lt;/A&gt;&lt;SPAN&gt;or &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~GetAllDetails.html"&gt;GetAllDetails&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionaly you can create new renderers by using the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.GenerateRendererTask.html"&gt;GenerateRendererTask&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a sample &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#GenerateRenderer"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the confusion.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 07:17:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-renderer-on-sublayer-in/m-p/639073#M16441</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2012-07-24T07:17:11Z</dc:date>
    </item>
  </channel>
</rss>

