
@@ -338,6 +338,8 @@ let isIndeterminateFence = ref(true);
let checked = ref(1);
let devName = ref("");
let locationList = ref([]);
+let ratio:any = ref(sessionStorage.getItem('ratio'))
+ratio.value = 1/Number(ratio.value)
let addFormRef = ref
();
let addForm = ref({
areaRadius: 100, //区域半径
@@ -1112,9 +1114,10 @@ function trackMapInit(path: any, item: any) {
content: info.join("") //使用默认信息窗体框样式,显示信息内容
});
infoWindow.open(map, e.target.getPosition());
+ map.setFitView();
}
- map.setFitView();
+
}
function startAnimation() {
marker.moveAlong(lineArr, 200);
@@ -1125,7 +1128,8 @@ function initMap() {
var that = this;
//地图加载
map = new AMap.Map("mapContainer", {
- resizeEnable: true
+ // viewMode: '3D',
+ resizeEnable: true,
});
var geocoder = new AMap.Geocoder({});
//输入提示
@@ -1487,8 +1491,9 @@ function echoPersonMarker(item) {
});
infoWindow.open(map, e.target.getPosition());
+ map.setFitView();
}
- map.setFitView();
+
}
@@ -1505,9 +1510,9 @@ function echoPersonMarker(item) {