码迷,mamicode.com
首页 > 编程语言 > 详细

java调用google地图非原创

时间:2014-11-13 06:58:15      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   color   ar   os   sp   java   

 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 onload="initialize()" onunload="GUnload()" >
22                 <div id="map_canvas" style="width: 1500px; height: 1000px">
23                 </div>
24         </body>
25 </html>

 

java调用google地图非原创

标签:style   blog   http   io   color   ar   os   sp   java   

原文地址:http://www.cnblogs.com/leorain/p/4093966.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!