<?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: DynamicLayerInfos and GenerateRendererTask renderer legend in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751254#M9406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dominique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2014 10:01:42 GMT</pubDate>
    <dc:creator>LaurentSIBILLE</dc:creator>
    <dc:date>2014-10-28T10:01:42Z</dc:date>
    <item>
      <title>DynamicLayerInfos and GenerateRendererTask renderer legend</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751244#M9396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are trying to add thematic analysis by using following items:&lt;/P&gt;&lt;P&gt;- DynamicLayerInfos.&lt;/P&gt;&lt;P&gt;- QueryTableDataSource with custom SQL query targeting a custom WorkspaceID (SQL Server).&lt;/P&gt;&lt;P&gt;- GenerateRendererTask with UniqueValueDefinition classification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously with the SDK for WPF we were able to change the UniqueValueRenderer infos label generated by the renderer task.&lt;/P&gt;&lt;P&gt;This was necessary because using UniqueValueDefinition, there was no way to define which associated label to use within the legend control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the SDK for .Net, our previous code no longer works.&lt;/P&gt;&lt;P&gt;If we change a property on the renderer generated by the GenerateRendererTask, the dynamic layer is no longer displayed on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We don't know if we are doing thematic analysis the right way but we would like to add some functionality found within ArcMap 10.2.2 to our WPF application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be very appreciate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 08:26:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751244#M9396</guid>
      <dc:creator>LaurentSIBILLE</dc:creator>
      <dc:date>2014-10-24T08:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: DynamicLayerInfos and GenerateRendererTask renderer legend</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751245#M9397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a sample that uses the generate renderer task on the dynamic map service: &lt;A href="https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/dda4952b26386455a0f1cfc4e3d21d05d7ad7686/src/Desktop/ArcGISRuntimeSDKDotNet_DesktopSamples/Samples/DynamicServiceLayers/DynamicLayerRendering.xaml.cs" title="https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/dda4952b26386455a0f1cfc4e3d21d05d7ad7686/src/Desktop/ArcGISRuntimeSDKDotNet_DesktopSamples/Samples/DynamicServiceLayers/DynamicLayerRendering.xaml.cs"&gt;arcgis-runtime-samples-dotnet/DynamicLayerRendering.xaml.cs at dda4952b26386455a0f1cfc4e3d21d05d7ad7686 · Esri/arcgis-ru…&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 16:15:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751245#M9397</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2014-10-24T16:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: DynamicLayerInfos and GenerateRendererTask renderer legend</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751246#M9398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Morten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have already seen this sample and we are using the generate renderer task according to this sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As said before, we would like to add some functionality found within ArcMap 10.2.2 regarding thematic analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to change the renderer result's infos to let the Legend control displayed relevant informations?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a place to submit issues as we can do for 'arcgis-toolkit-dotnet' (github)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 08:39:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751246#M9398</guid>
      <dc:creator>LaurentSIBILLE</dc:creator>
      <dc:date>2014-10-27T08:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: DynamicLayerInfos and GenerateRendererTask renderer legend</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751247#M9399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to post the code which currently works against the WPF SDK and the code you are trying to run against the .NET SDK? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If necessary you could switch it to use a public sample service such as &lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer" title="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer"&gt;Census (MapServer)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 13:46:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751247#M9399</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2014-10-27T13:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: DynamicLayerInfos and GenerateRendererTask renderer legend</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751248#M9400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached a modified version of toolkit samples for .net.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open solution : samples\ArcGISRuntime.Toolkit.Samples.sln&lt;/P&gt;&lt;P&gt;Run it in debug mode or release mode&lt;/P&gt;&lt;P&gt;Go to : Toolkit/Legend/Legends (from Renderer Task Result)&lt;/P&gt;&lt;P&gt;If you click on 'Generate Unique Values' button, the map is no longer rendered.&lt;/P&gt;&lt;P&gt;But if you click on 'Generate Range Values' button, the map is rendered and label's legend was modified to: &lt;/P&gt;&lt;P&gt;***[Label value]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within LegendsFromRendererTask.xaml.cs file, I added the following comment to let you what we are trying to do regarding this issue:&lt;/P&gt;&lt;P&gt;//&amp;nbsp; BUG ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't have time to prepare a working sample using the SDK for WPF but if you really need it to track this issue I will try to do it.&lt;/P&gt;&lt;P&gt;The code is quite the same for both SDKs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To sum-up changing labels on ClassBreaksRenderer works fine but it doesn't works for the UniqueValueRenderer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 15:19:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751248#M9400</guid>
      <dc:creator>LaurentSIBILLE</dc:creator>
      <dc:date>2014-10-27T15:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: DynamicLayerInfos and GenerateRendererTask renderer legend</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751249#M9401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laurent,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like you found out a bug on how an UniqueValueRenderer is rehydrated after a property changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The workaround may be to get the 'Fields' and 'DefaultSymbol' before changing any renderer property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With your sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;var typedUniqRender = (result.Renderer as UniqueValueRenderer);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if (typedUniqRender != null)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Workaround to BUG: call once the Fields and DefaultSymbol getters before changing the renderer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39; font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var fields = typedUniqRender.Fields;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39; font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var symbol = typedUniqRender.DefaultSymbol;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (var info in typedUniqRender.Infos)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; info.Label = "***" + info.Label; // If we customize the label here, there is bug that don't render the map anymore&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reporting this issue, we'll try to get it fixed in the next version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Dominique&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #00008b; font-size: 10pt; font-family: Consolas;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 17:34:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751249#M9401</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2014-10-27T17:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: DynamicLayerInfos and GenerateRendererTask renderer legend</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751250#M9402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dominique,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We hope you will be able to fix it for next release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be great to be able to reproduce some ArcMap functionalities regarding thematic(statistical) analysis using the SDK for .Net (or through the toolkit for .Net):&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Statistical_analysis/018p00000006000000/"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/Statistical_analysis/018p00000006000000/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-wpf/samples/index.html#/Statistics_With_Map_Online/02q2000000vz000000/"&gt;http://resources.arcgis.com/en/help/runtime-wpf/samples/index.html#/Statistics_With_Map_Online/02q2000000vz000000/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice regarding how to create thematic(statistical) analysis (with a legend that contains for each item a custom label and the number of objectids associated with it) will be very appreciate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: sorry for my english we are french users of the SDK for .Net&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 08:47:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751250#M9402</guid>
      <dc:creator>LaurentSIBILLE</dc:creator>
      <dc:date>2014-10-28T08:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: DynamicLayerInfos and GenerateRendererTask renderer legend</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751251#M9403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Statistical analysis can be executed through the geoprocessing Tools (&lt;A href="https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/master/src/Desktop/ArcGISRuntimeSDKDotNet_DesktopSamples/Samples/GeoprocessingTasks"&gt;samples of how to execute geoprocessing tools with the SDK for .Net&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;For displaying the result, it's a matter of renderer which can be created using a GenerateRenderer task (as in the sample you pointed out) or directly by using the .Net API.&lt;/P&gt;&lt;P&gt;Then the legend will be automatically based on the renderer properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Updated the link to the .Net sample instead of the WPF sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 09:06:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751251#M9403</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2014-10-28T09:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: DynamicLayerInfos and GenerateRendererTask renderer legend</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751252#M9404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We will give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you pointed us to a sample from SDK for WPF, it seems that theses samples should be easily translated to the SDK for .Net.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Citegestion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 09:32:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751252#M9404</guid>
      <dc:creator>LaurentSIBILLE</dc:creator>
      <dc:date>2014-10-28T09:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: DynamicLayerInfos and GenerateRendererTask renderer legend</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751253#M9405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I updated my answer to point to the .Net sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 09:36:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751253#M9405</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2014-10-28T09:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: DynamicLayerInfos and GenerateRendererTask renderer legend</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751254#M9406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dominique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 10:01:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/dynamiclayerinfos-and-generaterenderertask/m-p/751254#M9406</guid>
      <dc:creator>LaurentSIBILLE</dc:creator>
      <dc:date>2014-10-28T10:01:42Z</dc:date>
    </item>
  </channel>
</rss>

