次のような地図上にマーカーを正常に作成するGoogleマップのマーカー機能があります。
// 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
このソリューションを使用: Google マップ: マーカーに番号を付けますか?
このコード行を更新しましたが、番号付けされていません。私は何を間違っていますか?
var marker = new GMarker(point,{title:html,icon:'icon: \'https://chart.googleapis.com/chart?chst=d_map_pin_letter&chld='+ (position) +'|FF776B|000000',});