求教怎么在诺基亚地图显示图钉
星火梦燃 2014-05-17 01:04:39 求教怎么在诺基亚地图显示图钉,已经能定位,但不知道怎么显示图钉,求大神赐教该怎么写,如下是定位代码
///定位
private async void ApplicationBarIconButton_Click_3(object sender, EventArgs e)
{
var geolocator = new Windows.Devices.Geolocation.Geolocator();//获取当前位置
geolocator.DesiredAccuracyInMeters = 5;
Windows.Devices.Geolocation.Geoposition myGeoPosition = null;
try
{
myGeoPosition = await geolocator.GetGeopositionAsync(TimeSpan.FromMinutes(1), TimeSpan.FromSeconds(10));
}
catch (UnauthorizedAccessException)
{
MessageBox.Show("请在设置中勾选位置服务!");
}
//经纬度赋给Map center
var positionCoord = new System.Device.Location.GeoCoordinate(myGeoPosition.Coordinate.Latitude, myGeoPosition.Coordinate.Longitude);
this.NokiaMap.Center = positionCoord;
this.NokiaMap.ZoomLevel = 12;
}