¤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

­º­¶  ¡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