百度地图API的使用

<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
   
    <title>My JSP 'map.jsp' starting page</title>
   
 <meta http-equiv="pragma" content="no-cache">
 <meta http-equiv="cache-control" content="no-cache">
 <meta http-equiv="expires" content="0">   
 <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
 <meta http-equiv="description" content="This is my page">
 <!--
 <link rel="stylesheet" type="text/css" href="styles.css">
 -->
 <script type="text/javascript" src="http://api.map.baidu.com/api?v=1.2&services=true"> 
 <!-- add baidu map api --> 
 </script>

  </head>
 
 <body> 
 <div id="container" style="width: 600px; height: 400px;"> 
 </div> 
</body>
    <script type="text/javascript"> 
   var map = new BMap.Map("container");                  
   var point = new BMap.Point(125.407533, 43.864888);      
   map.centerAndZoom(point, 17);                            
     // 添加缩放功能 
     map.enableScrollWheelZoom(); 
     map.enableKeyboard();
 </script> 
</html>

你可能感兴趣的:(html,api,String,百度,import,stylesheet)