0
我的Windows 8手機應用程序使用mapoverlay以編程方式將圖像(作爲pin)添加到地圖中的特定座標。現在我想在點擊圖片後添加一個工具提示(pin)。有誰知道如何解決這一問題?如何在地圖windows phone 8中添加工具提示?
pinIMG = new Image();
pinIMG.Source = new System.Windows.Media.Imaging.BitmapImage(new Uri("/Assets/pin.png", UriKind.Relative));
MapOverlay myLocationOverlay = new MapOverlay();
myLocationOverlay.Content = pinIMG;
myLocationOverlay.PositionOrigin = new Point(0.5, 0.5);
myLocationOverlay.GeoCoordinate = new GeoCoordinate(57.724611, 12.938945);
MapLayer myLocationLayer = new MapLayer();
myLocationLayer.Add(myLocationOverlay);
MyMap.Layers.Add(myLocationLayer);