------------------------------------------------------------------------------------
<%@ page language="java"
import="java.util.*,java.text.SimpleDateFormat,com.teletek.soo8web.common.vo.*,com.teletek.soo8web.common.util.*" pageEncoding="GBK"%> <%@ taglib prefix="s" uri="/struts-tags"%> <% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %><jsp:include page="/common/header.jsp" flush="true">
<jsp:param value="4" name="menu"/> </jsp:include> <meta http-equiv="Content-Type" content="text/html; charset=GBK"/> <link rel="stylesheet" type="text/css" href="css/style.css"/> <script type="text/javascript" src="<%=path%>/js/jquery-1.8.2.js"></script> <script type="text/javascript" src="<%=path%>/My97DatePicker/WdatePicker.js"></script> <script type="text/javascript" src="<%=path%>/My97DatePicker/calendar.js"></script> <script type="text/javascript" src="<%=path%>/My97DatePicker/config.js"></script><script type="text/javascript"
src="> <script type="text/javascript"> var marker = null; var timerId = null; var counter = 0; var maplet = null; function initMap() { var map = new BMap.Map("allmap"); map.centerAndZoom(new BMap.Point(116.404, 39.915), 15); map.addControl(new BMap.NavigationControl()); //添加默认缩放平移控件 map.enableScrollWheelZoom(); map.enableContinuousZoom();<% List searchList = (List)request.getAttribute("searchList");
if(searchList !=null && !searchList.isEmpty()){ PositionVo positionVo = null;%> var polyline = new BMap.Polyline( [ <%for(int i = 0; i < searchList.size(); i++){ positionVo = (PositionVo)searchList.get(i); if(i < searchList.size() -1){%> new BMap.Point(<%=positionVo.getLongitude()%>,<%=positionVo.getLatitude()%>), <%}else{%> new BMap.Point(<%=positionVo.getLongitude()%>,<%=positionVo.getLatitude()%>) <%}%> <%}%> ],