|
@@ -1089,7 +1089,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
|
model.dispatchEvent('transformChanged') //改了position */
|
|
|
},
|
|
|
changePosition(pos) {//校准取消时执行
|
|
|
- console.log('changePosition', model.name, pos.x, pos.y, pos.z)
|
|
|
+ //console.log('changePosition', model.name, pos.x, pos.y, pos.z)
|
|
|
if(pos.x == 0 && pos.y == 0 && pos.z == 0 && model.lonLatPos ){
|
|
|
model && model.position.copy(model.lonLatPos)
|
|
|
console.log('changePosition 使用经纬度坐标', model.name )
|
|
@@ -1099,9 +1099,9 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
|
model.dispatchEvent({ type: 'position_changed' })
|
|
|
},
|
|
|
changeRotation(rot) {//校准取消时执行
|
|
|
- console.log('changeRotation', model.name, rot.x, rot.y, rot.z)
|
|
|
+ //console.log('changeRotation', model.name, rot.x, rot.y, rot.z)
|
|
|
model && model.rotation.setFromVector3(rot)
|
|
|
- model.dispatchEvent({ type: 'rotation_changed' })
|
|
|
+ model.dispatchEvent({ type: 'rotation_changed' , by2d:true})
|
|
|
},
|
|
|
|
|
|
enterRotateMode() {
|