ºë½o¤Æ·h®a¹Î¶¤¡A´£¨Ñ¦í®a¡B¿ûµ^·h¹B¤ÎÜÀx«OºÞªA°È ¼i¬ù«O»Ù¡A·h®a¯uªº¦n©ñ¤ß | ´£¨Ñ±zÀu½èªºªA°È¡A¥D°Ê´M§ä¤uµ{®×¥ó¡A30¬í¥ß§Y§Ö³t±µ®× ·~ÁZ´£¤É10%~40%¡A¨C¤Ñ¦h±µ2~3ӫȤá |
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"> |