![](/img/trans.png)
[英]How to make s tooltip/text to always be on top of a pushpin/image in Bing Maps using C#?
[英]How to display multiple lines of text in bing maps pushpin?
我將帶有foreach循環的圖釘添加到地圖中,如下所示:
Pushpin p = new Pushpin() { Location = new Microsoft.Maps.MapControl.WPF.Location { Latitude = n.latitude, Longitude = n.longtitude} };
我的課看起來像這樣:
public class Address
{
public int ID { get; set; }
public string companyName { get; set; }
public string address { get; set; }
public string street { get; set; }
public string houseNumber { get; set; }
public double longtitude { get; set; }
public double latitude { get; set; }
}
如何將Address類中的其他數據添加到圖釘,看起來像這樣? 圖釘
您鏈接到的圖像是一個信息框。 我建議創建一個自定義UIControl,使其外觀看起來像您想要的樣子,然后將其添加到地圖中,而不是嘗試修改Pushpin類。 這是一個代碼示例:
https://msdn.microsoft.com/zh-CN/library/hh868032.aspx
嘗試使用具有背景色的網格來啟動和添加文本字段。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.