2016-06-29 59 views

回答

0

爲了位置在地圖上的特定位置的元素,一個將使用MapControl.Location附加屬性:

<Image Source="ms-appx:///Assets/PinStore.png" Width="30" 
     maps:MapControl.Location="{x:Bind Location}" 
     maps:MapControl.NormalizedAnchorPoint="{x:Bind Anchor}"/> 

我沒有檢查自己,但是,考慮到MapControl.Location屬性的鍵入Geopoint,並且Geopoint支持高度值和參考系統,我會假定這會起作用。您可能需要以3D模式顯示地圖(使用MapControl的Style屬性)和傾斜(使用MapControl上的'DesiredPitch`屬性),以便高度「有意義」。

0

在地圖上繪製一個MapIcon時,您需要通過一個Geopoint。這可以通過其中包含Altitude屬性BasicGeoposition構造:

new Geopoint(new BasicGeoposition 
{ 
    Latitude = 52.181427, 
    Longitude = 5.399780, 
    Altitude = 10 //unit: meters 
}); 

使用UWP地圖控件的偉大3D功能,你可以看到你的MapIcons左右浮動。隨時看看這篇文章"Windows 10 maps part 5 - styles and 3D" by Joost van Schaik

相關問題