【发布时间】:2016-06-11 11:42:05
【问题描述】:
所以,我的 bing 地图有问题,我想将自定义图钉(图像)放到地图上,但我没有看到所有图钉只有几个,当我缩放时,图钉消失了
这是我的代码:
foreach (Stores store in boltok)
{
var myPosition = new Windows.Devices.Geolocation.BasicGeoposition();
myPosition.Latitude = store.Latitude;
myPosition.Longitude = store.Longitude;
var myStorePoint = new Windows.Devices.Geolocation.Geopoint(myPosition);
MapIcon icon = new MapIcon();
icon.Location = new Geopoint(new BasicGeoposition()
{
Latitude = store.Latitude,
Longitude = store.Longitude
});
icon.Visible = true;
icon.ZIndex = 0;
icon.Image = RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/StoreFinder/Pin.png"));
icon.NormalizedAnchorPoint = new Point(0.5, 1.0);
myMapControl.MapElements.Add(icon);
myMapControl.Children.Add(icon);
}
请帮帮我!
【问题讨论】:
标签: c# windows-phone-8.1 position location bing-maps