首页 > 代码库 > java调用google地图非原创

java调用google地图非原创

 1 <%@ page contentType="text/html; charset=gb2312"%> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml" 4         xmlns:v="urn:schemas-microsoft-com:vml"> 5         <head> 6                 <meta http-equiv="content-type" content="text/html; charset=gb2312" /> 7                 <title>谷歌地图javascript</title> 8                 <script 9                         src="http://ditu.google.com/maps?file=api&v=2&key=ABQIAAAAmZzPqf2aW-7Si6ot-HY9-hRhm3yhlCBaxy4FA8xZJReMAoDMwhQtB3B5zaWqCOSd_tjuCOoj9SsVZw"10                         type="text/javascript">11 </script>12                 <script type="text/javascript">13 function initialize() {14         if (GBrowserIsCompatible()) {15                 var map = new GMap2(document.getElementById("map_canvas"));16                 map.setCenter(new GLatLng(31.0576, 121.2134), 14);17         }18 }19 </script>20         </head>21         <body onl oad="initialize()" onunload="GUnload()" >22                 <div id="map_canvas" style="width: 1500px; height: 1000px">23                 </div>24         </body>25 </html>

 

java调用google地图非原创