------------------------------------------------------------------------------------------------
import="java.util.*,java.text.SimpleDateFormat,com.teletek.soo8web.common.vo.*,com.teletek.soo8web.common.util.*"
pageEncoding="GBK"%>
uri="/struts-tags"%>
String path = request.getContextPath();
String basePath = request.getScheme() +
"://"
+ request.getServerName() + ":" +
request.getServerPort()
+ path + "/";
%>
flush="true">
href="css/style.css"/>
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()%>)
<%}%>
<%}%>
],
{strokeColor:"red", strokeWeight:6, strokeOpacity:0.5}