¤j¼Ó¡B©±±§N®ð«O¾i¡B¦w¸Ë¡Bºû× ¦h¦~ºû׸gÅç¡A±M·~¼ö§Õ§Þ³N | ¥´³y²z·Qªº©~®a¡B°Ó·~ªÅ¶¡ªùµ¡¡A³]p¡B¦w¸Ë ªA°È§¹µ½¡A»ù®æ§C¡B«~½èÀu¡A¥ß§Y¨Ó¹q |
Google Maps Api ¦ÛqGIconª«¥ó |
©ÐªF¡G¤p±j µoªí®É¶¡¡G2010-09-01 | [ÀËÁ|] |
1 //GMarkerª«¥ó ¥i¥H¼Ð°O¦a¹Ï¤Wªº¦ì¸m §ÚÌ¥i¥H³z¹L¤U±ªº¤èªk«Ø¥ßGMarkerª«¥ó 02 //¦³¨âºØ¤èªk«Ø¥ßGMarker ª«¥ó 03 //¤@¡A¨Ï¥ÎPoint ª«¥ó«Ø¥ß 04 var marker1 = new GMarker(GPoint,GIcon,insert); 05 //GIcon ¬°¦b¦a¹Ï¤W¨Ï¥Îªº¦Ûq¼Ð°O¹Ï¥Ü 06 //insert ¤Þ¼Æ«h¥i¥HÅý§Ú̳]pGMarker ª«¥ó¬O§_¶i¦æÂIÀ»»PIJµo¨Æ¥ó¡A¶ñ¤JTrue¬°¤£¥iÂIÀ»False¬°¥i¥HÂIÀ» 07 //¤G¡A¨Ï¥ÎGLanlngª«¥ó«Ø¥ß 08 var marker2 = new GMarker(GLatLng,GMarkerOptions); 09 //¥H¤U¬°½d¨Ò 10 function initialize() 11 ...{ 12 //§PÂ_ÂsÄý¾¹¬O§_¤ä´©Google Maps 13 if(GBrowselsCompatible()) 14 ...{ 15 //«Ø¥ßGMaps2ª«¥ó 16 map = new GMap2(document.getElementById(\"DIVªºID\"); 17 map.serCenter(new GLatLng(¸g´ç,½n«×),ÁY©ñµ¥¯Å); 18 //«Ø¥ß¦ÛqGIconª«¥ó 19 var icon = new GIcon(); 20 icon.image = \"http://maps.google.com.tw/mapfiles/ms/micons/pink-pushpin.png\"; 21 //¨Ï¥Î²Ä¤@ºØ¤èªk«Ø¥ß 22 var marker1 = new GMarker(new GPiont(¸g«×,½n«×),icon,true); 23 //¨Ï¥Î²Ä¤GºØ¤èªk«Ø¥ß 24 var marker2 = new GMarker(new GLatLng(¸g«×,½n«×)); 25 //±NGMarker ª«¥ó¥[¤JGMaps 26 map.addOverlay(marker1); 27 map.addOverlay(marker2); 28 } 29 } |
1 ¼Ó¦í¤á¡GªüÄ_ µoªí®É¶¡¡G2010-09-01 | [ÀËÁ|] |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |