Select to view content in your preferred language

Use KML Extended Data in MapTips

788
1
08-25-2011 11:30 AM
ElizabethMiller
Regular Contributor
I am displaying a KML file in my map as a GraphicsLayer and I am using MapTips to display attributes for each feature. However, I can't get the MapTip to display more than one attribute (the KML attribute for <name>). There is ExtendedData in my KML file for other attributes but I can't figure out how to pull that data out (Google Earth does it fine). Can anyone give an example of how to do this? Here is what I have in my xaml file:

       <Canvas HorizontalAlignment="Left" VerticalAlignment="Top" >
            <esri:MapTip x:Name="MyMapTip"  
            BorderBrush="#99000000" 
            GraphicsLayer="{Binding Layers[Walls],ElementName=MyMap}"
            BorderThickness="1" 
            Title="{Binding [name]}" 
            VerticalOffset="10" 
            HorizontalOffset="10" Background="#DDFFFFFF" />
        </Canvas>


Thanks for any help anyone can offer!
0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor
This should be stored in the "extendedData" attribute of each graphic.
0 Kudos