First page Back Continue Last page Overview Image

Google Map API: Mark

var point = new google.maps.LatLng(23.508742, 121.120850); //設定一個地圖點

var im = 'http://xxx.com/beachflag.png';//設定標示圖

var mark = new google.maps.Marker({position:point,map:map,title:"測試點",icon: im});//設定marker標定於point點

var infowindow = new google.maps.InfoWindow({content:"測試點"});

infowindow.open(map,mark);//打開資訊視窗

導航請看 js40.html 與 js41.html