fix: BUG修改
This commit is contained in:
parent
0522b179ca
commit
f5281f45aa
@ -1226,24 +1226,24 @@ const handleCheckChange = (e: any, obj: any) => {
|
||||
}
|
||||
|
||||
if (keys.indexOf(e.key) !== -1) {
|
||||
setTimeout(function () {
|
||||
// 修改白膜的偏移位置
|
||||
let findItem: any = albugineaList.value.find(item => item.id == e.key);
|
||||
console.log(findItem);
|
||||
if (!findItem) return;
|
||||
let initCenter: any;
|
||||
initCenter = {
|
||||
lng: layer.orginCenterPoint.lng,
|
||||
lat: layer.orginCenterPoint.lat,
|
||||
alt: layer.orginCenterPoint.alt
|
||||
};
|
||||
layer.position = {
|
||||
lng: initCenter.lng + +findItem.lng,
|
||||
lat: initCenter.lat + +findItem.lat,
|
||||
alt: initCenter.alt + +findItem.alt
|
||||
};
|
||||
console.log(layer.position);
|
||||
}, 200);
|
||||
// setTimeout(function () {
|
||||
// // 修改白膜的偏移位置
|
||||
// let findItem: any = albugineaList.value.find(item => item.id == e.key);
|
||||
// console.log(findItem);
|
||||
// if (!findItem) return;
|
||||
// let initCenter: any;
|
||||
// initCenter = {
|
||||
// lng: layer.orginCenterPoint.lng,
|
||||
// lat: layer.orginCenterPoint.lat,
|
||||
// alt: layer.orginCenterPoint.alt
|
||||
// };
|
||||
// layer.position = {
|
||||
// lng: initCenter.lng + +findItem.lng,
|
||||
// lat: initCenter.lat + +findItem.lat,
|
||||
// alt: initCenter.alt + +findItem.alt
|
||||
// };
|
||||
// console.log(layer.position);
|
||||
// }, 200);
|
||||
layer.show = true;
|
||||
layer.flyTo();
|
||||
} else {
|
||||
@ -1286,24 +1286,24 @@ const handleCheckChangeMapSplitScreen = (e: any, obj: any) => {
|
||||
}
|
||||
|
||||
if (keys.indexOf(e.key) !== -1) {
|
||||
setTimeout(function () {
|
||||
// 修改白膜的偏移位置
|
||||
let findItem: any = albugineaList.value.find(item => item.id == e.key);
|
||||
console.log(findItem);
|
||||
if (!findItem) return;
|
||||
let initCenter: any;
|
||||
initCenter = {
|
||||
lng: layer.orginCenterPoint.lng,
|
||||
lat: layer.orginCenterPoint.lat,
|
||||
alt: layer.orginCenterPoint.alt
|
||||
};
|
||||
layer.position = {
|
||||
lng: initCenter.lng + +findItem.lng,
|
||||
lat: initCenter.lat + +findItem.lat,
|
||||
alt: initCenter.alt + +findItem.alt
|
||||
};
|
||||
console.log(layer.position);
|
||||
}, 200);
|
||||
// setTimeout(function () {
|
||||
// // 修改白膜的偏移位置
|
||||
// let findItem: any = albugineaList.value.find(item => item.id == e.key);
|
||||
// console.log(findItem);
|
||||
// if (!findItem) return;
|
||||
// let initCenter: any;
|
||||
// initCenter = {
|
||||
// lng: layer.orginCenterPoint.lng,
|
||||
// lat: layer.orginCenterPoint.lat,
|
||||
// alt: layer.orginCenterPoint.alt
|
||||
// };
|
||||
// layer.position = {
|
||||
// lng: initCenter.lng + +findItem.lng,
|
||||
// lat: initCenter.lat + +findItem.lat,
|
||||
// alt: initCenter.alt + +findItem.alt
|
||||
// };
|
||||
// console.log(layer.position);
|
||||
// }, 200);
|
||||
layer.show = true;
|
||||
layer.flyTo();
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user