<?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: Single vs. multiple FeatureLayers in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406177#M10509</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looking at your map service, the attribute CONSTYEAR expects value of type Int16, which is why your UniqueValueRenderer.Infos are not matched.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;CONSTYEAR (Type: esriFieldTypeSmallInteger, Alias: CONSTYEAR) &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You would have to change your UniqueValueRenderer.Infos to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; xmlns:sys="clr-namespace:System;assembly=mscorlib"&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 &amp;lt;esri:UniqueValueInfo Symbol="{StaticResource Year2011MarkerSymbol}"&amp;gt;
&amp;nbsp; &amp;lt;esri:UniqueValueInfo.Value&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;sys:Int16&amp;gt;2011&amp;lt;/sys:Int16&amp;gt;
&amp;nbsp; &amp;lt;/esri:UniqueValueInfo.Value&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:UniqueValueInfo&amp;gt; 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, it seems that type Int16 is not found or supported in XAML for Silverlight. I was getting XamlParseException and the type Int16, which is found in the intellisense cannot be found at run-time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might need to define your custom renderer in code-behind or update the current renderer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private void FeatureLayer_Initialized(object sender, System.EventArgs e)
{
 UniqueValueRenderer uvr = (sender as FeatureLayer).Renderer as UniqueValueRenderer;
 foreach (var info in uvr.Infos)
 {
&amp;nbsp; if ((Int16)info.Value == (Int16)2011)
&amp;nbsp;&amp;nbsp; info.Symbol = this.LayoutRoot.Resources["Year2011MarkerSymbol"] as Symbol;
&amp;nbsp; else if ((Int16)info.Value == (Int16)2012)
&amp;nbsp;&amp;nbsp; info.Symbol = this.LayoutRoot.Resources["Year2012MarkerSymbol"] as Symbol;
&amp;nbsp; else if ((Int16)info.Value == (Int16)2013)
&amp;nbsp;&amp;nbsp; info.Symbol = this.LayoutRoot.Resources["Year2013MarkerSymbol"] as Symbol;
&amp;nbsp; else if ((Int16)info.Value == (Int16)2014)
&amp;nbsp;&amp;nbsp; info.Symbol = this.LayoutRoot.Resources["Year2014MarkerSymbol"] as Symbol;
&amp;nbsp; else if ((Int16)info.Value == (Int16)2015)
&amp;nbsp;&amp;nbsp; info.Symbol = this.LayoutRoot.Resources["Year2015MarkerSymbol"] as Symbol;
 }
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 18:28:25 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2021-12-11T18:28:25Z</dc:date>
    <item>
      <title>Single vs. multiple FeatureLayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406168#M10500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Suppose you have a map service containing a point layer and a line layer. Each of these layers is defined with a single symbol in the service. (This seems to be a requirement to get the map tip to work.) On the map we want to present these 2 layers with symbol colors representing the YEAR attribute from the service layer. This would be done with a custom renderer and associated symbol. If we are presenting 5 years worth of data with each year being a different color, would it be best to create a FeatureLayer for each year, or can all 5 years be presented in a single FeatureLayer (1 for points and 1 for lines)? Assume the years do not need to be manipulated individually. Is there a sample around that shows how to render different symbols within a layer based on the attribute data?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 19:41:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406168#M10500</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2011-03-10T19:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Single vs. multiple FeatureLayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406169#M10501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;Each of these layers is defined with a single symbol in the service. (This seems to be a requirement to get the map tip to work.)&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;No, I don't think so. You can use renderers and MapTips are still working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;would it be best to create a FeatureLayer for each year, or can all 5 years be presented in a single FeatureLayer&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;A single featurelayer is better since there will be only one query at the server side.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there a sample around that shows how to render different symbols within a layer based on the attribute data?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you look at this sample? &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#RenderersXAML"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#RenderersXAML&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have to create the renderer by code, you can also look at this one : &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Thematic_Interactive"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Thematic_Interactive&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 20:47:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406169#M10501</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-03-10T20:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Single vs. multiple FeatureLayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406170#M10502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Dominique. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, I have been messing with maptips trying unsuccessfully to get them to work all week. Today I modified the service to drop the symbolization within the service and presto the maptip works. So my conclusion was that somehow the maptip was incompatible with a symbolized service. Here is an interesting experiment. The following code shows 2 layers taken from a single service. The only difference between these 2 layers is that one is symbolized and the other is not. You will see that the line layer which is symbolized will not show the data in the maptip. Whereas the point layer which is not symbolized does show the data. What would you conclude from this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer ID="ConstructionProjectsLines"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisableClientCaching="False"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="http://gismaps.pagnet.org/ArcGIS/rest/services/Interactive_TIP_20111/MapServer/1" &amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Border CornerRadius="10" BorderBrush="SaddleBrown" BorderThickness="3" Margin="0,0,15,15" Background="LightGray"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Margin="7"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="Location: " Foreground="Black" FontWeight="Bold"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [ST_NAME]}" Foreground="Black" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Border&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:FeatureLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:FeatureLayer&amp;gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer ID="ConstructionProjectsPoints"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisableClientCaching="False"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="http://gismaps.pagnet.org/ArcGIS/rest/services/Interactive_TIP_20111/MapServer/0" &amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Border CornerRadius="10" BorderBrush="SaddleBrown" BorderThickness="3" Margin="0,0,15,15" Background="LightGray"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Margin="7"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="Location: " Foreground="Black" FontWeight="Bold"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [ST_NAME]}" Foreground="Black" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Border&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:FeatureLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:FeatureLayer&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:28:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406170#M10502</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2021-12-11T18:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Single vs. multiple FeatureLayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406171#M10503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like the fields returned by default are not the same if there is a renderer or if there is no renderer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you set OutFields="ST_NAME" (or OutFields="*"), you should be able to display it in the maptip.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 21:58:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406171#M10503</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-03-10T21:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Single vs. multiple FeatureLayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406172#M10504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So Dominique, the sample you suggested looks like it would work for my situation but for some reason does not. Can you tell me what I have wrong? Here is my code.&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;Grid.Resources&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri2:SimpleFillSymbol x:Key="DefaultFillSymbol" Fill="#33FF0000" BorderBrush="Red" BorderThickness="2" /&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri2:PictureMarkerSymbol x:Key="DefaultPictureSymbol" OffsetX="35" OffsetY="35" Source="component/Assets/images/identify.png" /&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri2:SimpleMarkerSymbol x:Key="DefaultMarkerSymbol" Color="Aqua" Style="Circle" /&amp;gt;

&amp;nbsp;&amp;nbsp; &amp;lt;esri2:SimpleMarkerSymbol x:Key="Year2011MarkerSymbol" Color="Green" Size="8" Style="Circle" /&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri2:SimpleMarkerSymbol x:Key="Year2012MarkerSymbol" Color="Blue" Size="8" Style="Circle" /&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri2:SimpleMarkerSymbol x:Key="Year2013MarkerSymbol" Color="Yellow" Size="8" Style="Circle" /&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri2:SimpleMarkerSymbol x:Key="Year2014MarkerSymbol" Color="Orange" Size="8" Style="Circle" /&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri2:SimpleMarkerSymbol x:Key="Year2015MarkerSymbol" Color="Red" Size="8" Style="Circle" /&amp;gt;

&amp;nbsp;&amp;nbsp; &amp;lt;esri:UniqueValueRenderer x:Key="MyUniqueValueRenderer" Attribute="CONSTYEAR" &amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:UniqueValueRenderer.Infos&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:UniqueValueInfo Value="2011" Symbol="{StaticResource Year2011MarkerSymbol}" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:UniqueValueInfo Value="2012" Symbol="{StaticResource Year2012MarkerSymbol}" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:UniqueValueInfo Value="2013" Symbol="{StaticResource Year2013MarkerSymbol}" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:UniqueValueInfo Value="2014" Symbol="{StaticResource Year2014MarkerSymbol}" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:UniqueValueInfo Value="2015" Symbol="{StaticResource Year2015MarkerSymbol}" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:UniqueValueRenderer.Infos&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:UniqueValueRenderer&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and here is my layer&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;esri:FeatureLayer ID="ConstructionProjectsPoints"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisableClientCaching="False"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="http://gismaps.pagnet.org/ArcGIS/rest/services/Interactive_TIP_20111/MapServer/0" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Renderer="{StaticResource MyUniqueValueRenderer}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where="CONSTYEAR = 2011" &amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Border CornerRadius="10" BorderBrush="SaddleBrown" BorderThickness="3" Margin="0,0,15,15" Background="LightGray"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Margin="7"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="Location: " Foreground="Black" FontWeight="Bold"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [ST_NAME]}" Foreground="Black" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Border&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:FeatureLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:FeatureLayer&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Note I only have 1 year in the Where clause just to keep it simple and I wasn't sure how to build the or. If you drop the renderer the points come in just fine. With the renderer they do not display. The CONSTYEAR field is type short.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:28:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406172#M10504</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2021-12-11T18:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Single vs. multiple FeatureLayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406173#M10505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to add OutFields="CONSTYEAR,ST_NAME"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (or ="*")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 22:11:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406173#M10505</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-03-10T22:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Single vs. multiple FeatureLayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406174#M10506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You need to add OutFields="CONSTYEAR,ST_NAME"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (or ="*")&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ah Ha! Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any insight into my custom renderer attempt?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 13:05:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406174#M10506</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2011-03-11T13:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Single vs. multiple FeatureLayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406175#M10507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;Any insight into my custom renderer attempt? &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Should work as well as soon as the fields used by the renderer are in OutFields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the remaining issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 13:17:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406175#M10507</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-03-11T13:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Single vs. multiple FeatureLayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406176#M10508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My problem is that when I apply the renderer the points do not display at all.&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer ID="ConstructionProjectsPoints"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisableClientCaching="False"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="http://gismaps.pagnet.org/ArcGIS/rest/services/Interactive_TIP_2011/MapServer/0" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where="CONSTYEAR = 2011"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OutFields="*"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Renderer="{StaticResource MyUniqueValueRenderer}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Border CornerRadius="10" BorderBrush="SaddleBrown" BorderThickness="3" Margin="0,0,15,15" Background="LightGray"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Margin="7"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="Location: " Foreground="Black" FontWeight="Bold"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [ST_NAME]}" Foreground="Black" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Border&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:FeatureLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:FeatureLayer&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:28:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406176#M10508</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2021-12-11T18:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Single vs. multiple FeatureLayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406177#M10509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looking at your map service, the attribute CONSTYEAR expects value of type Int16, which is why your UniqueValueRenderer.Infos are not matched.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;CONSTYEAR (Type: esriFieldTypeSmallInteger, Alias: CONSTYEAR) &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You would have to change your UniqueValueRenderer.Infos to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; xmlns:sys="clr-namespace:System;assembly=mscorlib"&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 &amp;lt;esri:UniqueValueInfo Symbol="{StaticResource Year2011MarkerSymbol}"&amp;gt;
&amp;nbsp; &amp;lt;esri:UniqueValueInfo.Value&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;sys:Int16&amp;gt;2011&amp;lt;/sys:Int16&amp;gt;
&amp;nbsp; &amp;lt;/esri:UniqueValueInfo.Value&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:UniqueValueInfo&amp;gt; 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, it seems that type Int16 is not found or supported in XAML for Silverlight. I was getting XamlParseException and the type Int16, which is found in the intellisense cannot be found at run-time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might need to define your custom renderer in code-behind or update the current renderer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private void FeatureLayer_Initialized(object sender, System.EventArgs e)
{
 UniqueValueRenderer uvr = (sender as FeatureLayer).Renderer as UniqueValueRenderer;
 foreach (var info in uvr.Infos)
 {
&amp;nbsp; if ((Int16)info.Value == (Int16)2011)
&amp;nbsp;&amp;nbsp; info.Symbol = this.LayoutRoot.Resources["Year2011MarkerSymbol"] as Symbol;
&amp;nbsp; else if ((Int16)info.Value == (Int16)2012)
&amp;nbsp;&amp;nbsp; info.Symbol = this.LayoutRoot.Resources["Year2012MarkerSymbol"] as Symbol;
&amp;nbsp; else if ((Int16)info.Value == (Int16)2013)
&amp;nbsp;&amp;nbsp; info.Symbol = this.LayoutRoot.Resources["Year2013MarkerSymbol"] as Symbol;
&amp;nbsp; else if ((Int16)info.Value == (Int16)2014)
&amp;nbsp;&amp;nbsp; info.Symbol = this.LayoutRoot.Resources["Year2014MarkerSymbol"] as Symbol;
&amp;nbsp; else if ((Int16)info.Value == (Int16)2015)
&amp;nbsp;&amp;nbsp; info.Symbol = this.LayoutRoot.Resources["Year2015MarkerSymbol"] as Symbol;
 }
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:28:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406177#M10509</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T18:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Single vs. multiple FeatureLayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406178#M10510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jenn. Its helpful to have that insight. I suppose I could change the field type at the source to text. Do you expect that would fix it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively I did find a workaround by changing the renderer type to a ClassBreaksRenderer. This does work.&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;esri2:SimpleMarkerSymbol x:Key="MySmallMarkerSymbol" Color="Green" Size="8" Style="Circle" /&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri2:SimpleMarkerSymbol x:Key="MyMediumMarkerSymbol" Color="Blue" Size="8" Style="Circle" /&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri2:SimpleMarkerSymbol x:Key="MyLargeMarkerSymbol" Color="Yellow" Size="8" Style="Circle" /&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:ClassBreaksRenderer x:Key="MyClassBreaksRenderer" Attribute="CONSTYEAR" &amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ClassBreaksRenderer.Classes&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ClassBreakInfo MinimumValue="2011" MaximumValue="2011" Symbol="{StaticResource MySmallMarkerSymbol}" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ClassBreakInfo MinimumValue="2012" MaximumValue="2012" Symbol="{StaticResource MyMediumMarkerSymbol}" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ClassBreakInfo MinimumValue="2013" MaximumValue="2013" Symbol="{StaticResource MyLargeMarkerSymbol}" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:ClassBreaksRenderer.Classes&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:ClassBreaksRenderer&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Which option do you think is the better fix?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:28:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406178#M10510</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2021-12-11T18:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Single vs. multiple FeatureLayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406179#M10511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ClassBreaksRenderer is usually used when you want to apply the same symbol to a range of values and UniqueValueRenderer is usually used when you want to apply one symbol for a particular attribute value. &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/2.1/help/Working_symbols_renderers.htm"&gt;http://help.arcgis.com/en/webapi/silverlight/2.1/help/Working_symbols_renderers.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While ClassBreaksRenderer worked, I think that you mean to use UniqueValueRenderer but that is just my opinion. Changing the field type to esriFieldTypeString or esriFieldTypeInteger should work. I don't know why Silverlight XAML seem to have this limitation with Int16. If changing your service seem drastic, I think you can simply create your renderer in code-behind.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 16:32:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406179#M10511</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-03-11T16:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Single vs. multiple FeatureLayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406180#M10512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you suppose this is a bug that we should report (not working with Int16)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 14:28:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406180#M10512</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2011-03-14T14:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Single vs. multiple FeatureLayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406181#M10513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure I can post this question to Microsoft.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following reproduce the same XamlParseException:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
xmlns:sys="clr-namespace:System;assembly=mscorlib"&amp;gt;
&amp;lt;Grid x:Name="LayoutRoot" Background="White"&amp;gt;&amp;nbsp; 
 &amp;lt;ComboBox VerticalAlignment="Top" HorizontalAlignment="Center" SelectedIndex="0"&amp;gt;
 &amp;lt;ComboBox.Items&amp;gt;
&amp;nbsp; &amp;lt;!--&amp;lt;sys:Int32&amp;gt;1&amp;lt;/sys:Int32&amp;gt;--&amp;gt;
&amp;nbsp; &amp;lt;sys:Int16&amp;gt;1&amp;lt;/sys:Int16&amp;gt;
 &amp;lt;/ComboBox.Items&amp;gt;
&amp;lt;/ComboBox&amp;gt;
&amp;lt;/Grid&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found this from Silverlight forum: &lt;/SPAN&gt;&lt;A href="http://forums.silverlight.net/forums/p/32280/100852.aspx#100852" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.silverlight.net/forums/p/32280/100852.aspx#100852&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:28:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/single-vs-multiple-featurelayers/m-p/406181#M10513</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T18:28:30Z</dc:date>
    </item>
  </channel>
</rss>

