<esri:UniqueValueInfo Value="Arizona" Symbol="{StaticResource MyRedFillSymbol}" /><esri:UniqueValueInfo Value="Arizona" Source="/Assets/images/PushPin3.png"/>
<esri:UniqueValueInfo Value="Arizona" Symbol="{SOME ESRI SYMBOL}" />
That possible or wise?
Code:
<esri:UniqueValueInfo Value="Arizona" Source="/Assets/images/PushPin3.png"/>
Code:
<esri:UniqueValueInfo Value="Arizona" Symbol="{SOME ESRI SYMBOL}" />
<esri:FeatureLayer ID="MyFeatureLayerClassBreak"
Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0"
Where="STATE_NAME in ('New Mexico', 'Arizona', 'Texas')"
Renderer="{StaticResource MyClassBreaksRenderer}"
OutFields="POP1990" /><esri:GraphicsLayer ID="MyGraphicsLayerListBox1" MouseLeftButtonDown="GraphicsLayer_MouseLeftButtonDown" MouseEnter="imageList1_Mousehover" Visible="False" />
For Each selectedGraphic As Graphic In args.FeatureSet.Features
selectedGraphic.Symbol = TryCast(LayoutRoot.Resources("StrobeMarkerSymbol_Blue"), ESRI.ArcGIS.Client.Symbols.Symbol)
'selectedGraphic.Symbol = TryCast(LayoutRoot.Resources("MyUniqueValueRenderer"), ESRI.ArcGIS.Client.Symbols.Symbol)
_resultsGraphicsLayer.Graphics.Add(selectedGraphic)
Next selectedGraphic
I also noticed that the Renderer is workign on a Feature Layer....I have a grpahics layer
THINK I AM HAVING issues because its a graphics layer....Can I even do this on a graphics layer?
Do I have to set this up in VB?
<Grid x:Name="LayoutRoot" Background="{StaticResource BaseColor}">
<Grid.Resources>
<esri:SimpleMarkerSymbol x:Key="BLUEMarkerSymbol" Color="Blue" Size="12" Style="Circle" />
<esri:SimpleMarkerSymbol x:Key="PURPLEMarkerSymbol" Color="Purple" Size="12" Style="Circle" />
<esri:UniqueValueRenderer x:Key="MyUniqueValueRenderer" Attribute="TYPE" >
<esri:UniqueValueRenderer.Infos>
<esri:UniqueValueInfo Value="Church" Symbol="{StaticResource BLUEMarkerSymbol}" />
<esri:UniqueValueInfo Value="SCHOOL" Symbol="{StaticResource PURPLEMarkerSymbol}" />
</esri:UniqueValueRenderer.Infos>
</esri:UniqueValueRenderer>
</Grid.Resources>
<Grid Grid.Row="2">
</esri:Map.Extent>
<esri:Map.Layers>
<esri:GraphicsLayer ID="MyGraphicsLayerBufferResults"
MouseEnter="imageBuffer_Mousehover"
MouseLeftButtonDown="GraphicsLayerBuffer_MouseLeftButtonDown"
Renderer="MyUniqueValueRenderer"
>
</esri:Map.Layers>
</esri:Map>
_resultsGraphicsLayer = TryCast(MyMap.Layers("MyGraphicsLayerBufferResults"), GraphicsLayer)
If args.FeatureSet.Features.Count < 1 Then
MessageBox.Show("No features found")
Return
End If
For Each selectedGraphic As Graphic In args.FeatureSet.Features
_resultsGraphicsLayer.Graphics.Add(selectedGraphic)
Next selectedGraphic