Select to view content in your preferred language

Add Layer name to idenify results

3759
2
Jump to solution
07-09-2012 05:40 PM
by Anonymous User
Not applicable
Original User: kdunlop

I was wondering if there is any way to add the layer name to the title of an identify result.  Right now, I have it set to use the layers ID (custom 5 digit code) when it identifies things but my users want to see something like "Parking Lost: 12345" or "Existing Buildings: 98765" as the title so they know they clicked on the right feature. See attachment for example of what I want.  How do I change this?
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
0 Kudos
2 Replies
by Anonymous User
Not applicable
0 Kudos
ZoranGavranic
Deactivated User
Replace original code in OnClickPopupContainerStyle.xaml located in Config/Layouts/ResourceDictionaries/Common

   <TextBlock Text="{Binding PopupItem.Title}" Grid.Row="0"
       Foreground="{TemplateBinding Foreground}"
       FontSize="13" FontWeight="Bold"
       HorizontalAlignment="Left"
       VerticalAlignment="Center"
      TextTrimming="WordEllipsis">

with following code:

<TextBlock Grid.Row="0"
    Foreground="{TemplateBinding Foreground}"
    FontSize="13" FontWeight="Bold"
    HorizontalAlignment="Left"
    VerticalAlignment="Center"
    TextTrimming="WordEllipsis">
    <Run Text="{Binding PopupItem.LayerName}"/>
    <Run Text=":" />       
    <Run Text="{Binding PopupItem.Title}" />
0 Kudos