我有一个谷歌地图标记功能,可以成功地在这样的地图上创建标记:
// A function to create the marker and set up the event window
function createMarker(point,html) {
var marker = new GMarker(point,{title:html});
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(html);
});
return marker;
}
这是现有代码的 tinyurl:http: //tinyurl.com/b8f9b4l
使用这个解决方案:谷歌地图:在标记中放置数字?
我已经更新了这行代码,但它没有编号。我究竟做错了什么?
var marker = new GMarker(point,{title:html,icon:'icon: \'https://chart.googleapis.com/chart?chst=d_map_pin_letter&chld='+ (position) +'|FF776B|000000',});