[英]How to change color of bing maps pushpin for windows store app
我想更改圖釘的顏色。 我正在嘗試設置icon屬性,但是我得到的是十字標記而不是圖釘。 該圖像是我的項目文件夾。
var targetPin = new Microsoft.Maps.Pushpin({
latitude: searchLocations[i].locationLatitude,
longitude: searchLocations[i].locationLongitude,
height: 44,
width: 30
},{ icon:'images/green.png'});
在圖像的屬性中,將構建操作設置為“內容”。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.