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