Creating MapTips programmatically for programmatically-created KML layer using ArcGIS

المشرف العام

Administrator
طاقم الإدارة
The few examples and forum posts that I have found all use KML layers defined in XAML at design-time with nested MapTip templates binding to one or more Placemark attributes e.g. name or ExtendedData values (using the ExtendedDataConverter class provided in the example here).

I am looking for a way to programmatically configure map tips on a programmatically-created KML layer at runtime. I can display empty map tips if I assign a MapTip instance to every Graphic in the KmlLayer, but cannot figure out how to dynamically bind the MapTip to the Attribute data in the Graphic. I have inspected the graphic elements and confirmed that they do indeed contain the correct attribute data from the KML document.

Does anyone have an idea as to how this can be accomplished?



أكثر...
 
أعلى