|
@@ -758,12 +758,12 @@ export const enter = (dom, mapDom, isLocal, lonlat) => {
|
|
|
changePosition(pos){//校准取消时执行
|
|
|
console.log('changePosition',pos.x, pos.y, pos.z)
|
|
|
model && model.position.copy(pos)
|
|
|
- model.dispatchEvent({type:'position_changed'})
|
|
|
+ model && model.dispatchEvent({type:'position_changed'})
|
|
|
},
|
|
|
changeRotation(rot){//校准取消时执行
|
|
|
console.log('changeRotation',rot.x, rot.y, rot.z)
|
|
|
model && model.rotation.setFromVector3(rot)
|
|
|
- model.dispatchEvent({type:'rotation_changed'})
|
|
|
+ model && model.dispatchEvent({type:'rotation_changed'})
|
|
|
},
|
|
|
|
|
|
enterRotateMode(){
|