AnsweredAssumed Answered

Legend for DynamicLayer

Question asked by befoley1960 on Jan 28, 2016
Latest reply on Jan 28, 2016 by aweeg19

am trying to create a multi-layer legend for an ArcGISDynamicMapServiceLayer.  I want to be able click on an arrow to drop down to the next level.  The second level has several levels below that, and I also want to be able to click on an arrow to show the final sub-layer.  Now, I'm able to do this, however, on the last sub-layer, I want to show the color and displayname associated with that sub-layer.  This is what my  code looks like :

I can't get the color for the sub-layer to show using <image> tag.  Can anyone provide some help.  Thanks.

 

Brian

 

<esri:Legend.LegendItemTemplate>

    <DataTemplate>

       <Button Visibility="Collapsed" Tag="{Binding Label}">

           <Grid>

               <Grid.ColumnDefinitions>

                   <ColumnDefinition/>

                   <ColumnDefinition/>

               </Grid.ColumnDefinitions>

               <Image Grid.Column="0" Source="{Binding ImageSource}" />

               <TextBlock Grid.Column="1" Text="{Binding Label}" />

            </Grid>

       </Button>

    </DataTemplate>

</esri:Legend.LegendItemTemplate>

Outcomes