<?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: feature layer not  binding to the Unique Value renderer in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552552#M14137</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;no it does not work. I mentioned in my previous reply also that only default symbology comes on the map. there are 75 other shapes with LEASELEFT value of 1, they don't get the desired symbology.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Feb 2011 20:08:26 GMT</pubDate>
    <dc:creator>JaskiratAnand</dc:creator>
    <dc:date>2011-02-09T20:08:26Z</dc:date>
    <item>
      <title>feature layer not  binding to the Unique Value renderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552548#M14133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a feature layer which i'm binding to a unique value renderer in the xaml file. the result is that nothing comes up on the map. have tried to bind the unique value renderer in the xaml.cs file also on layer initialization complete event also but no result on the map. I took the xaml code from the ESRI resources help section but it doesn't seem to work. Also, i already have a unique value renderer on this layer in the Map document that I created using the ArcMap. i'm trying to change the rendering depending on user preference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is welcome.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2011 14:06:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552548#M14133</guid>
      <dc:creator>JaskiratAnand</dc:creator>
      <dc:date>2011-02-07T14:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: feature layer not  binding to the Unique Value renderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552549#M14134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does your UniqueValueRenderer define a DefaultSymbol? Do the features get the DefaultSymbol atleast? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe the graphic.Attribute value does not match any of the UniqueValueInfo.Value. The values must have the same data type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the following code for this layer&lt;/SPAN&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/MapServer/0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/MapServer/0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For simplicity, I have only one UniqueValueInfo. Graphics whose ftype attribute do not match my UniqueValueInfo.Value will get the default symbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;esri:UniqueValueRenderer&amp;nbsp; x:Key="MyRenderer" Attribute="ftype"&amp;gt;
 &amp;lt;esri:UniqueValueRenderer.DefaultSymbol&amp;gt;
&amp;nbsp; &amp;lt;esri:SimpleMarkerSymbol Color="Blue" Size="10" Style="Circle"/&amp;gt;
 &amp;lt;/esri:UniqueValueRenderer.DefaultSymbol&amp;gt;
 &amp;lt;esri:UniqueValueInfo &amp;gt;
&amp;nbsp; &amp;lt;esri:UniqueValueInfo.Value&amp;gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:&amp;quot;red&amp;quot;;"&gt;&amp;lt;sys:Int32&amp;gt;10901&amp;lt;/sys:Int32&amp;gt;&lt;/SPAN&gt;&amp;nbsp; &amp;lt;/esri:UniqueValueInfo.Value&amp;gt;
&amp;nbsp; &amp;lt;esri:UniqueValueInfo.Symbol&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleMarkerSymbol Color="Yellow" Size="10" Style="Diamond"/&amp;gt;
&amp;nbsp; &amp;lt;/esri:UniqueValueInfo.Symbol&amp;gt;
 &amp;lt;/esri:UniqueValueInfo&amp;gt;&amp;nbsp;&amp;nbsp; 
&amp;lt;/esri:UniqueValueRenderer&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:53:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552549#M14134</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T23:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: feature layer not  binding to the Unique Value renderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552550#M14135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using the below code in my xaml file. The "LEASELEFT" attribute is a numeric field in Oracle db. The spatial data is of type polygon. Only the default symbolgy comes on the feature layer, however, I have atleast 75 shapes with attribute LEASELEFT having value 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;esri:UniqueValueRenderer x:Name="UniqueValueRenderer" Attribute="&lt;STRONG&gt;LEASELEFT&lt;/STRONG&gt;" &amp;gt;
&amp;lt;esri:UniqueValueRenderer.DefaultSymbol&amp;gt;
&amp;lt;esriSymbols:SimpleFillSymbol Fill="Blue" BorderBrush="Green" BorderThickness="2"/&amp;gt;
&amp;lt;/esri:UniqueValueRenderer.DefaultSymbol&amp;gt;
&amp;lt;esri:UniqueValueInfo &amp;gt;
&amp;lt;esri:UniqueValueInfo.Value&amp;gt;
&amp;lt;sys:Int32&amp;gt;1&amp;lt;/sys:Int32&amp;gt;
&amp;lt;/esri:UniqueValueInfo.Value&amp;gt;
&amp;lt;esri:UniqueValueInfo.Symbol&amp;gt;
&amp;lt;esriSymbols:SimpleFillSymbol Fill="Red" BorderBrush="Green" BorderThickness="2"/&amp;gt;
&amp;lt;/esri:UniqueValueInfo.Symbol&amp;gt;
&amp;lt;/esri:UniqueValueInfo&amp;gt;
&amp;lt;/esri:UniqueValueRenderer&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;finally binding it to the feature layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;esri:FeatureLayer ID="MyFeatureLayer" Url="Map layer url" Renderer="{StaticResource UniqueValueRenderer}" /&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:37:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552550#M14135</guid>
      <dc:creator>JaskiratAnand</dc:creator>
      <dc:date>2021-12-12T16:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: feature layer not  binding to the Unique Value renderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552551#M14136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So did that work for you? Do your features get a symbol now?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 16:26:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552551#M14136</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-02-08T16:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: feature layer not  binding to the Unique Value renderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552552#M14137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;no it does not work. I mentioned in my previous reply also that only default symbology comes on the map. there are 75 other shapes with LEASELEFT value of 1, they don't get the desired symbology.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Feb 2011 20:08:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552552#M14137</guid>
      <dc:creator>JaskiratAnand</dc:creator>
      <dc:date>2011-02-09T20:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: feature layer not  binding to the Unique Value renderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552553#M14138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you subscribe to UpdateCompleted event and then check each graphic attribute LEASELEFT? If this value is null, make sure that OutFields in the FeatureLayer include this attribute. Otherwise, check the data type, make sure it matches your UniqueValueInfo.Value. It's actually good that your UniqueValueRenderer.DefaultSymbol is now used. You just need to find out why the UniqueValueInfo.Symbol is not picked up. The symbol should also be fitting for the geometry type. Since you are using SimpleFillSymbol, the features must be polygon geometry.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 00:30:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552553#M14138</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-02-11T00:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: feature layer not  binding to the Unique Value renderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552554#M14139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;double checked all the points mentioned Jennifer, the data is not null for the attribute LEASELEFT. the data type is numeric if Oracle db 10g and I'm using int32 in my unique value renderer for it. any new pointers will be very helpful&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 15:36:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552554#M14139</guid>
      <dc:creator>JaskiratAnand</dc:creator>
      <dc:date>2011-02-11T15:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: feature layer not  binding to the Unique Value renderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552555#M14140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure what else to tell you. Maybe the numeric value is a double not an integer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can create a class that implements IRenderer with UniqueValueRenderer (UVR) as one of its properties. Use this renderer for your layer instead so you can debug where it may be failing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can implement GetSymbol() this way. Step through when it fails to find a matching info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
public Symbol GetSymbol(Graphic graphic)
{
 if (graphic != null &amp;amp;&amp;amp; UVR.Attribute != null)
 {
&amp;nbsp; if (graphic.Attributes.ContainsKey(UVR.Attribute))
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; object objValue = graphic.Attributes[UVR.Attribute];
&amp;nbsp;&amp;nbsp; foreach (UniqueValueInfo info in UVR.Infos)
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (info.Value == objValue || objValue != null &amp;amp;&amp;amp; info.Value != null &amp;amp;&amp;amp; objValue.GetHashCode() == info.Value.GetHashCode())
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return info.Symbol;
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
 }
 return UVR.DefaultSymbol;
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:53:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552555#M14140</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T23:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: feature layer not  binding to the Unique Value renderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552556#M14141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for the quick response. will try the class implementation logic and hope it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for all the help Jennifer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Feb 2011 11:50:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552556#M14141</guid>
      <dc:creator>JaskiratAnand</dc:creator>
      <dc:date>2011-02-12T11:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: feature layer not  binding to the Unique Value renderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552557#M14142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry to bring up an old thread. I had this same problem also and just solved it. To clarify, my problem was I had a feature layer with a unique value renderer and the only symbol being displayed was the default symbol. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at the rest service details on a browser, I saw all my fields were uppercase and under "unique value renderer" my "field 1" was lowercase. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I did was open the related map, removed the layer, added the layer back in and rebuild the symbology from scratch, saved, restarted my map service, cleared my rest cache and voila! My unique value renderer - field 1 is now uppercase and my feature layer displays correctly. So it appears in ArcMap renderer fields are not case sensitive (I don't know how it got to be lowercase to begin with), but in Silverlight they ARE case sensitive.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps people who come across the same problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 14:45:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-not-nbsp-binding-to-the-unique-value/m-p/552557#M14142</guid>
      <dc:creator>RobChouinard</dc:creator>
      <dc:date>2011-08-16T14:45:37Z</dc:date>
    </item>
  </channel>
</rss>

