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

­º­¶  ¡E  tw ½×¾Â ¡E µ{¦¡³]­p°Q½×     ¡E 

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 }



  • ÃÙ§Uºô¯¸       

    ¼s§Q¤£°Ê²£-·sªO¯S°Ï«ü¦W«×³Ì°ª¡B­È±o±z«H¿àªº¦n©Ð¥ò
    ±zªº¦«¥I,¼s§Q¥Î¤ß¬°±zªA°È
    ¼s§Q¤£°Ê²£-ªO¾ô¦b¦a¥Í®Ú³Ì¹ê¦b--·sªO¯S°Ï«ü¦W«×³Ì°ª¡B­È±o±z«H¿àªº¦n©Ð¥ò
    §¹¾ã©Ð°T¡A©Ð«Î¡B©±­±¼öªùºë¿ïª«¥ó¡A¼s§Q¤£°Ê²£ Àu½è¥ò¤¶¡A©Ð«Î¯²¸î¡B¶R½æ¸ê°T³z©ú¡A¥æ©ö¯u¦w¤ß¡I

  • 1 ¼Ó¦í¤á¡GªüÄ_
    µoªí®É¶¡¡G2010-09-01
    [ÀËÁ|]


    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">



    Google Maps API�d��::::�x�n������













    �@�@ 1 �H�^���@�@��ܭ��� �i��1 ���j 

    �m�W�G
    �G�i���e�G