冲突合并
This commit is contained in:
commit
9692141e45
|
|
@ -9,7 +9,6 @@
|
|||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<!-- <title>后台管理系统</title> -->
|
||||
<title>项目一体化作战动态管控平台</title>
|
||||
<link rel="stylesheet" href="css/font-awesome/css/font-awesome.css" media="all" />
|
||||
<link rel="stylesheet" href="css/index2.css" media="all" />
|
||||
|
|
@ -39,19 +38,6 @@
|
|||
<a class="logo" style="left: 0;" href="javascript:void(0)">
|
||||
<span style="font-size: 22px;color: #fff;letter-spacing: 2px;">项目一体化作战动态管控平台</span>
|
||||
</a>
|
||||
<div class="admin-side-toggle" style="display: none;">
|
||||
<i class="fa fa-bars" aria-hidden="true"></i>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="layui-nav" pc style="background-color: transparent !important;">
|
||||
<li class="layui-nav-item">
|
||||
<!-- <a href='javascript:;' lay-id="-997" data-url="pages/notice/noticePubList.html"><i class="fa fa-envelope-o" aria-hidden="true" title="公告" unreadNotice></i></a>-->
|
||||
</li>
|
||||
<li class="layui-nav-item" pc>
|
||||
<a href="javascript:;" style="color: #fff !important;" class="admin-header-user">
|
||||
<img />
|
||||
<span style="color: #fff !important;"></span>
|
||||
</a>
|
||||
<dl class="layui-nav-child">
|
||||
<!-- <dd>-->
|
||||
<!-- <a href='javascript:;' lay-id="-999" data-url="pages/user/updateMyself.html"><i class="fa fa-user-circle" aria-hidden="true"></i> 个人信息</a>-->
|
||||
|
|
@ -61,8 +47,8 @@
|
|||
aria-hidden="true"></i> 修改密码</a>
|
||||
</dd>
|
||||
<dd>
|
||||
<a href="javascript:;" onclick="logout()"><i class="fa fa-sign-out"
|
||||
aria-hidden="true"></i> 退出</a>
|
||||
<a href="javascript:;" onclick="logout()"><i class="fa fa-sign-out" aria-hidden="true"></i>
|
||||
退出</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
|
|
@ -85,7 +71,8 @@
|
|||
<cite></cite>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content" style="min-height: 150px; padding: 5px 0 0 0;background-color: #F2F2F2;">
|
||||
<div class="layui-tab-content"
|
||||
style="min-height: 150px; padding: 5px 0 0 0;background-color: #F2F2F2;">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<iframe id="sy" src=""></iframe>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -74,13 +74,15 @@ function initMap(list) {
|
|||
// 以第一个点为中心初始化地图
|
||||
map.centerAndZoom(new BMapGL.Point(intLng, intLat), 16);
|
||||
|
||||
map.setTilt(60); //设置地图的倾斜角度
|
||||
map.setTilt(65); //设置地图的倾斜角度
|
||||
map.enableScrollWheelZoom(true); // 启用滚轮缩放
|
||||
// map.setTilt(60); // 设置地图倾斜角度
|
||||
|
||||
// map.setDisplayOptions({
|
||||
// building: true, // 显示3D建筑物
|
||||
// });
|
||||
// 设置显示3D建筑物
|
||||
map.setDisplayOptions({
|
||||
building: true, // 显示3D建筑物
|
||||
indoor: false,
|
||||
poi: true
|
||||
});
|
||||
var navigationControl = new BMapGL.NavigationControl3D();
|
||||
map.addControl(navigationControl);
|
||||
|
||||
|
|
@ -168,19 +170,21 @@ function initMap(list) {
|
|||
});
|
||||
}
|
||||
initTowerLine(list);
|
||||
// 点击地图添加标记
|
||||
map.addEventListener("click", function (e) {
|
||||
addMarker(e.latlng.lng, e.latlng.lat);
|
||||
});
|
||||
|
||||
if (objParams.points) {
|
||||
let points = JSON.parse(objParams.points)
|
||||
$.each(points, function (i, item) {
|
||||
addMarker(item.lng, item.lat)
|
||||
viewPointLine();
|
||||
})
|
||||
} else {
|
||||
// 点击地图添加标记
|
||||
map.addEventListener("click", function (e) {
|
||||
addMarker(e.latlng.lng, e.latlng.lat);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// 添加点坐标
|
||||
function addMarker(lng, lat) {
|
||||
var point = new BMapGL.Point(lng, lat);
|
||||
// 创建点标记
|
||||
|
|
@ -208,10 +212,10 @@ function initMap(list) {
|
|||
label: label,
|
||||
point: point
|
||||
});
|
||||
console.log(markers)
|
||||
// 更新计数器
|
||||
markerCount++;
|
||||
}
|
||||
}
|
||||
|
||||
// 杆塔连线
|
||||
function initTowerLine(points) {
|
||||
|
|
@ -263,7 +267,7 @@ function initTowerLine(points) {
|
|||
);
|
||||
// 4. 设置3D参数
|
||||
var zoom = map.getZoom();
|
||||
var newTilt = 60;
|
||||
var newTilt = 65;
|
||||
var newHeading = 30;
|
||||
|
||||
// 5. 应用3D视角
|
||||
|
|
@ -315,6 +319,10 @@ function viewPointLine() {
|
|||
});
|
||||
polylineView = polyline;
|
||||
map.addOverlay(polyline);
|
||||
// 点击地图添加标记
|
||||
map.addEventListener("click", function (e) {
|
||||
addMarker(e.latlng.lng, e.latlng.lat);
|
||||
});
|
||||
}
|
||||
|
||||
// 保存点位数据
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@
|
|||
<body>
|
||||
|
||||
<div class="login">
|
||||
<!-- <div class="message">后台管理系统</div> -->
|
||||
<div class="message">项目一体化作战动态管控平台</div>
|
||||
<div id="darkbannerwrap"></div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue