Select to view content in your preferred language

Define FeatureLayer Symbol Template with Custom Graphics?

577
1
10-01-2010 11:42 AM
DanielWalton
Frequent Contributor
Anyone know if it's possible to define a symbol template in XAML for a FeatureLayer incorporating the various symbol graphics that are parsed from the Feature service? Specifically, I have a feature layer with 3 or 4 different symbols, but I want each symbol's rotation bound to Attributes[Angle]. Can it be done and how?

Thanks,
Dan
0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor
You would have to define your own symbols and renderer from scratch instead of relying on the server provided symbology. In your symbol template you can simply bind the rotate transform to an attibute.
Ie:
<ControlTemplate>
  <Image RenderTransformOrigin=".5,.5" ...etc>
     <Image.RenderTransform>
        <RotateTransform Angle="{Binding Attributes[Heading]}" />
    </Image.RenderTransform>
  </Image>
</ControlTemplate>
0 Kudos