怎么用PHP调用google map api ?并且将数据库里经纬度表示的点显示在地图上??
如题。最好写详细点,谢谢!
<br /> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br /> <html xmlns="http://www.w3.org/1999/xhtml"><br /> <head><br /> <meta http-equiv="X-UA-Compatible" content="IE=7" /><br /> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><br /> <meta name="description" content=" " /><br /> <title>谷歌地图 api测试</title><br /> <style><br /> .map {<br /> <br /> width: 205px;<br /> height: 192px;<br /> text-align: center;<br /> margin: 0 auto;<br /> <br /> }<br /> </style><br /> </head><br /> <body> <br /> <div id="res_map" class="map"></div><br /> <script src="http://ditu.google.cn/maps?file=api&v=2&&key=ABQIAAAAHDyarwhqc8qoi6Hi4Fw2ABS7hG4ulivpH-Zy5ZAv91XflKVwfhRT3BrS_8CE9kMWp7UXsEngXSYF3A" type="text/javascript" charset="utf-8"></script> <br /> <script type="text/javascript" charset="utf-8"> <br /> function show_small_map() <br /> { <br /> if (GBrowserIsCompatible()) <br /> { <br /> var map = new GMap2(document.getElementById("res_map"));<br /> function createMarker(latlng) <br /> {<br /> var marker = new GMarker(latlng);<br /> return marker;<br /> }<br /> map.setCenter(new GLatLng(23.1150614,113.4082905), 16);<br /> var smc = new GSmallZoomControl3D;<br /> map.addControl(smc);<br /> var latlng = new GLatLng(23.1150614,113.4082905);<br /> map.addOverlay(createMarker(latlng)); <br /> <br /> } <br /> }<br /> show_small_map();<br /> </script><br /> </body><br /> </html>