»ù¦ì¤½¹D¡A¬I¤u¼Ð·Ç¡A§i§O©Ð«Îº|¤ô «Ç¤º¾ÀÀù°ÝÃD¡A¨¾¤ô¤uµ{³W¹º¡A¨Ó¹q§K¶O°Éº| | ¥ô¦ó²Ó¸`³£¤£°¨ªê¡A´£¨Ñ¤j¼Ó¡B¿ì¤½«Ç²M¼ä ¥~Àð²M¬~±M·~µû¦ô¡A»ù®æ¤½¹D¡CÅwªï¨Ó¹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"> |