スポンサードリンク

マーカーの設定 new google.maps.Marker()

var marker;

var myLatlng = new google.maps.LatLng(-25.363882,131.044922);

marker = new google.maps.Marker( { position: myLatlng, title:”Hello World!” });

marker = new google.maps.Marker( { map:  map, //・・・・・・マーカを表示させる地図の指定

position: initialLocation, //・・・・・・マーカの座標・位置を指定

icon:  ’http://waox.main.jp/maps/icon/car2.png’,  //・・・・・・アイコンの画像を指定

shadow: shadow, //・・・・・・アイコンの影画像を指定

flat:  false, //・・・・・・true の場合、マーカーの影は表示しない

title: ‘現在位置’, //・・・・・・タイトルの表示文字

draggable:  false //・・・・・・マーカー(アイコン)移動の有効無効

clickable: true,  //・・・・・・クリック有効無効

visible: true,//true の場合、マーカーを表示する。

animation: google.maps.Animation.DROP,//・・・・・・マーカー(アイコン)のアニメーション

スポンサードリンク

Related Posts

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <img localsrc="" alt="">