2
是否可以將文本添加到WPF bing地圖中的指定位置(緯度/經度)?向WPF添加文本標籤Bing Maps
是否可以將文本添加到WPF bing地圖中的指定位置(緯度/經度)?向WPF添加文本標籤Bing Maps
是的,c#代碼隱藏我會承擔?
// I just created a Location object from the mouseclick but you can replace labelLocation with anything
Microsoft.Maps.MapControl.WPF.Location labelLocation = myMap.ViewportPointToLocation(mousePosition);
// Create a label
Label customLabel = new Label();
customLabel.Content = "Text here";
// With map layers we can add WPF children to lat long (WPF Location obj) on the map.
MapLayer labelLayer = new MapLayer();
labelLayer.AddChild(customLabel, labelLocation);
myMap.Children.Add(labelLayer);