@ -56,7 +56,7 @@ QMUtil = function () {
inArea : false , //点击后是否聚焦到房间
camZoom : 3 , //设置我的方向状态地图放大倍数
boxShop : [ ] , //设置box上显示的文字(过滤指),可点击触发onlyShop
deviceAng : fals e, //地图初始化方向是否使用设备角度
deviceAng : tru e, //地图初始化方向是否使用设备角度
}
this . mapAngle = 0 ; //地图默认角度
this . lightOptions = {
@ -2384,12 +2384,12 @@ MainMap_QM.prototype = {
}
Map_QM . controls . setZoom ( zoom )
let vat = Map_QM . mapBackToWorld ( centerPoint . x , centerPoint . y , 0 ) ;
TweenMax . to ( Map_QM . controls . object . position , 0.1 , {
x : vat . x , delay : 0.1 , onComplete : function ( ) {
Map_QM . controls . maxDistance = Map_QM . util . options . maxDis ;
}
} ) ;
TweenMax . to ( Map_QM . controls . target , 0.1 , { x : vat . x , y : vat . y , z : vat . z } ) ;
Map_QM . controls . maxDistance = Map_QM . util . options . maxDis ;
Map_QM . controls . target . set ( vat . x , vat . y , vat . z ) ;
Map_QM . controls . object . lookAt ( vat . x , vat . y , vat . z ) ;
let angle = Map_QM . util . options . deviceAng ? Map_QM . util . deviceObj . angle : Map_QM . util . mapAngle
Map_QM . rotationAngle ( angle )
isJUZ = true ;
} ,
//底图二维坐标转 3D模型三维坐标