老系统对接
This commit is contained in:
65
webapp/supplier/mapDisplay.jsp
Normal file
65
webapp/supplier/mapDisplay.jsp
Normal file
@ -0,0 +1,65 @@
|
||||
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
|
||||
<title>道路救援</title>
|
||||
<link rel="stylesheet" href="http://cache.amap.com/lbs/static/main1119.css"/>
|
||||
<style type="text/css">
|
||||
#weui_btn_primary{
|
||||
background-color: #6CF;
|
||||
float: right;
|
||||
margin-top: 10%;
|
||||
}
|
||||
.container{
|
||||
margin-top: 15%;
|
||||
}
|
||||
.amap-marker .marker-route {
|
||||
position: absolute;
|
||||
width: 40px;
|
||||
height: 44px;
|
||||
color: #e90000;
|
||||
background: url("/SinoGYS/images/point.png") no-repeat;
|
||||
}
|
||||
.amap-marker .marker-marker-bus-from {
|
||||
background-position: -120px -0px;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3"></script>
|
||||
<script type="text/javascript" src="http://cache.amap.com/lbs/static/addToolbar.js"></script>
|
||||
</head>
|
||||
<%
|
||||
String lon=request.getParameter("lon");
|
||||
String lat=request.getParameter("lat");
|
||||
|
||||
%>
|
||||
|
||||
<script type="text/javascript">
|
||||
function goback(){
|
||||
window.history.go(-1);
|
||||
}
|
||||
</script>
|
||||
<body>
|
||||
<input>
|
||||
<div>
|
||||
<div id="top"><a class="weui_btn weui_btn_mini weui_btn_primary" onclick="goback()">返回</a></div>
|
||||
<div id="container"></div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var map = new AMap.Map("container", {
|
||||
resizeEnable: true,
|
||||
center: [<%=lon%>, <%=lat%>],//地图中心点
|
||||
zoom: 13 //地图显示的缩放级别
|
||||
});
|
||||
var marker = new AMap.Marker({ //添加自定义点标记
|
||||
map: map,
|
||||
position: [<%=lon%>, <%=lat%>], //基点位置
|
||||
offset: new AMap.Pixel(-17, -42), //相对于基点的偏移位置
|
||||
draggable: false, //是否可拖动
|
||||
content: '<div class="marker-route marker-marker-bus-from"></div>' //自定义点标记覆盖物内容
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user