|
|
@@ -235,7 +235,9 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
|
var pos = camera.position
|
|
|
sceneBus.emit('cameraChange', { x: pos.x, y: pos.y, z: pos.z, rotate: camera.rotation })
|
|
|
})
|
|
|
-
|
|
|
+ viewer.addEventListener('panoBump',()=>{
|
|
|
+ sceneBus.emit('noPanoCanFly')
|
|
|
+ })
|
|
|
//-------------------------------------
|
|
|
let modelAinB = (A,B)=>{ //B的expand(5m) bound完全包含A
|
|
|
let boundB = B.boundingBox.clone().expandByVector(new THREE.Vector3(5,5,5)).applyMatrix4(B.matrixWorld)
|
|
|
@@ -1166,7 +1168,9 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
|
bus,
|
|
|
model,
|
|
|
getDefaultRotation,
|
|
|
-
|
|
|
+ getDefaultPosition(){
|
|
|
+ return model.lonLatPos || new THREE.Vector3(0,0, model.zOnGround || 0)
|
|
|
+ },
|
|
|
supportPano() { //是否支持全景图
|
|
|
return model?.panos?.length > 0
|
|
|
},
|