增加地图熟悉
This commit is contained in:
parent
4e82fbcdf1
commit
fa1eb4023c
|
|
@ -143,7 +143,17 @@ function initMap() {
|
|||
map = new BMapGL.Map("map-box");
|
||||
// 以第一个点为中心初始化地图
|
||||
map.centerAndZoom(new BMapGL.Point(intLng, intLat), 15);
|
||||
map.enableScrollWheelZoom(true);
|
||||
|
||||
map.setTilt(73); //设置地图的倾斜角度
|
||||
|
||||
map.enableScrollWheelZoom(true); // 启用滚轮缩放
|
||||
// map.setTilt(60); // 设置地图倾斜角度
|
||||
|
||||
// map.setDisplayOptions({
|
||||
// building: true, // 显示3D建筑物
|
||||
// });
|
||||
var navigationControl = new BMapGL.NavigationControl3D();
|
||||
map.addControl(navigationControl);
|
||||
|
||||
// 每次初始化的时候清除所有标点以及线
|
||||
map.clearOverlays();
|
||||
|
|
@ -687,8 +697,8 @@ function addMapLine() {
|
|||
let lineColor = "";
|
||||
let lineStyle = "";
|
||||
if (
|
||||
startPoint.towerProgress === 7 &&
|
||||
endPoint.towerProgress === 7
|
||||
startPoint.towerProgress === 6 &&
|
||||
endPoint.towerProgress === 6
|
||||
) {
|
||||
lineColor = "#5ad8a6";
|
||||
lineStyle = "solid";
|
||||
|
|
|
|||
Loading…
Reference in New Issue