15526 已经标过点的 编辑的时候 再次进入 画面不是标点的地方
parent
509aa22460
commit
485b045b09
|
@ -544,8 +544,13 @@ export default {
|
||||||
},
|
},
|
||||||
toCenter(center = this.center) {
|
toCenter(center = this.center) {
|
||||||
console.log('toCenter', center)
|
console.log('toCenter', center)
|
||||||
|
if (this.FIRE_POINT_ID && this.LONGTITUDE && this.LATITUDE && this.LONGTITUDE.trim() != '' && this.LATITUDE.trim() != '') {
|
||||||
|
this.center.longitude = this.LONGTITUDE
|
||||||
|
this.center.latitude = this.LATITUDE
|
||||||
|
} else {
|
||||||
this.center.longitude = center.longitude
|
this.center.longitude = center.longitude
|
||||||
this.center.latitude = center.latitude
|
this.center.latitude = center.latitude
|
||||||
|
}
|
||||||
this.center.height = center.height
|
this.center.height = center.height
|
||||||
viewer.camera.flyTo({
|
viewer.camera.flyTo({
|
||||||
// 设置中心点,x,y,缩放等级
|
// 设置中心点,x,y,缩放等级
|
||||||
|
|
Loading…
Reference in New Issue