|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
* @Author: JC9527
|
|
|
|
|
* @Date: 2024-01-09 23:08:15
|
|
|
|
|
* @LastEditors: JC9527
|
|
|
|
|
* @LastEditTime: 2024-03-20 13:15:38
|
|
|
|
|
* @LastEditTime: 2024-05-15 13:25:50
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
|
<div class="map-main">
|
|
|
|
@ -1808,7 +1808,18 @@ export default {
|
|
|
|
|
if(id == 1 && this.actionMap == 1) {
|
|
|
|
|
this.personLine.forEach(per=>{
|
|
|
|
|
if(item.imei == per.imei) {
|
|
|
|
|
getUserByImei({imei:per.imei}).then(resTwo=>{
|
|
|
|
|
if(resTwo.code == 200) {
|
|
|
|
|
this.map.setZoomAndCenter(16,[per.longitude,per.latitude]);
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
this.personInfo.position = [per.longitude,per.latitude];
|
|
|
|
|
this.personInfo.info = per;
|
|
|
|
|
this.personInfo.personinfo = resTwo.data[0];
|
|
|
|
|
this.personInfo.visible = true;
|
|
|
|
|
},1500)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} else if(id == 3 && this.actionMap == 3){
|
|
|
|
@ -1908,6 +1919,7 @@ export default {
|
|
|
|
|
this.lightedPolygon = element.myPolygon;
|
|
|
|
|
this.lightedText = element.text;
|
|
|
|
|
this.map.setFitView(element.myPolygon);
|
|
|
|
|
// this.map.setFitView(element.myPolygon,false,null,13.1);
|
|
|
|
|
} else {
|
|
|
|
|
element.myPolygon.setOptions({
|
|
|
|
|
strokeColor: '#00C5EC',
|
|
|
|
|