¦h¦~©î°£¤uµ{¸gÅç¡A±MÀç¸ËæC©î°£ ¹j¶¡¥´À𵥬I¤u¡AÅwªï¬¢¸ß | ³Ð·s¼s§i©ÛµP³]p¡A¿Ë¥Á»ù®æ ³»¯Å½è·P¡A³sÂê¥ø·~¦X§@±ÀÂË¡I |
Google Map¦a§}¬d¸ß |
©ÐªF¡G¤p±i µoªí®É¶¡¡G2010-08-28 | [ÀËÁ|] |
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"> file=api&v=2&key=ABQIAAAAV1c70XS4h8G45asrAG9p6xQ- IJgB5K1kiq95CtgFR2Z1Td7OdBRPgdbbWcFMKE9fE8pTHAOpXOSbEQ\" type=\"text/javascript\"> GClientGeocoderhttp://klc-km.blogspot.com/2008/04/google-map-api-6.html\'>http://klc- km.blogspot.com/2008/04/google-map-api-6.html extraction.html\">http://code.google.com/apis/maps/documentation/examples/geocoding- extraction.html |
1 ¼Ó¦í¤á¡Gªü³Í µoªí®É¶¡¡G2010-08-28 | [ÀËÁ|] |
1.GClientGeocoder()¬OGmapªº¦a²z½s½XªA°È¡A½Ð¦bfunction initialize() ¤¤¥[¤J¡F geocoder = new GClientGeocoder(); 2.¦bfunction initialize() ¤U¤è¥[¤J¥Î¨Ó·j´Mªº¨ç¼ÆshowAddress()¡G function showAddress(address) { geocoder.getLatLng( address, function(point) { if (!point) { alert("§ä¤£¨ì¡G" + address); } else { map.setCenter(point, 13); var marker = new GMarker(point, {draggable: true ,bouncy:true}); map.addOverlay(marker); marker.openInfoWindowHtml(address); } } ); } 3.¦]¬° initialize() ©M showAddress() ³£·|¥Î¨ì map ¤Î geocoder¡A©Ò¥H¡A¦b initialize() «e¥ý«Å§i³o¨âÓÅÜ¼Æ var map =null; var geocoder =null; 4.³]©w¿é¤J¦a§}ªº¤å¦r®Ø¡G ¤G¡B¦s¤J¦a§}¡B¸g½n«× 1.§Q¥Îdocument.getElementById("Äæ¦ì¦W").value ±Nȵ¹¶ë¶i¥hªí³æ¤¤¡C 2.¦¹¥~¡A§ä¨ìªº¦ì¸m¦³®É«á·|¦³»~®t¡A¦]¦¹¡A«Ø¥ß¤@ÓºÊÅ¥¨Æ¥ó¡A¬ö¿ý½Õ¾ã«á¤§¦ì¸m¡C document.getElementById("latlng").value = markerLatLng.toString(); document.getElementById("name").value = address; //²¾°Ê¸`ÂI«án¶i¦æªº°Ê§@ GEvent.addListener(marker, "dragend", function() { markerLatLng = marker.getLatLng(); document.getElementById("latlng").value = markerLatLng.toString(); }); ¤T¡BŪ¥X¤w¦s¦ì¸m 1.§Q¥Î showAddress('{$latlng}') ¨Ó¾É¨ì§ÚÌnªººë½T¦ì¸m¡C function list_map(){ $sql="select `latlng`,`name` from `gmap`"; $result=mysql_query($sql) or die($sql); $main="
while(list($latlng,$name)=mysql_fetch_row($result)){ $main.=" } $main.=" eturn $main; } |
2 ¼Ó¦í¤á¡Gªü¥ç µoªí®É¶¡¡G2010-08-28 | [ÀËÁ|] |
http://my-web-design.blogspot.com/2007/09/google-maps-api.html http://ianjung1974.blogspot.com/2008/05/google-maps-api.html GClientGeocoder http://www.my-life.tw/hosting-talk/thread-418-1-1.html http://itgroup.blueshop.com.tw/uuuiii00/AllenJ?n=convew&i=20783 |
3 ¼Ó¦í¤á¡Gªü¤O µoªí®É¶¡¡G2010-09-04 | [ÀËÁ|] |
²³æª©¥» "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |