我向用户位置添加了一个标记,如下所示:
Gmaps.map.callback = function() {
Gmaps.map.createMarker({Lat: lat,
Lng: lng,
rich_marker: null,
marker_picture: ""
});
},但我想更改标记的图像。富标记似乎是解决方案,但我无法正确地构造rich_marker。
谁能给出一个富标记构建的例子。
发布于 2012-07-22 06:21:43
您应该执行以下操作:
Gmaps.map.callback = function() {
Gmaps.map.rich_marker = true;
Gmaps.map.createMarker({Lat: lat,
Lng: lng,
rich_marker: your_custom_html,
marker_picture: ""
});
}https://stackoverflow.com/questions/11471647
复制相似问题