如何在Google地图标记中插入字母字符?

时间:2014-06-19 09:37:24

标签: javascript html google-maps google-maps-api-3

下面的代码将显示绿色标记,但我需要在标记内显示字母“k”。我该怎么做?

var marker={
    "title": "Kathmandu",
    "lat":27.700,
    "lng":85.333333300000050 ,
    "description": "Kathmandu,Bagmati,Neapal<br>[i]"
}
var marker = new google.maps.Marker({
    position: myLatlng,
    map: map,
    icon:'http://maps.google.com/mapfiles/ms/icons/green-dot.png',
    title: data.title
});

0 个答案:

没有答案