@ -2158,6 +2158,7 @@ MainMap_QM.prototype = {
} ,
onInnerMeDir : function ( ) {
this . changeMapModel ( "2D" ) ;
Map_QM . controls . reset ( ) ;
Map_QM . controls . maxPolarAngle = 0
Map_QM . controls . minPolarAngle = 0
if ( Map_QM . util . pathStateObj . isPathState ) {
@ -2171,8 +2172,10 @@ MainMap_QM.prototype = {
Map_QM . controls . target = new THREE . Vector3 ( 0 , 0 , 0 )
}
Map_QM . controls . setZoom ( Map_QM . util . options . camZoom )
Map_QM . rotationAngle ( Map_QM . util . deviceObj . angle )
Map_QM . controls . enableRotate = false
setTimeout ( ( ) => {
Map_QM . rotationAngle ( Map_QM . util . deviceObj . angle )
Map_QM . controls . enableRotate = false
} , 50 ) ;
} ,
changeMapModel : function ( model ) {
if ( model == "2D" ) {
@ -2646,9 +2649,8 @@ MainMap_QM.prototype = {
*
* /
rotationAngle : function ( angle ) {
if ( Math . abs ( parseInt ( angle ) + Map_QM . controls . getRotateHorizontal ( ) * 180 / Math . PI ) > 5 ) {
Map_QM . controls . setRotateHorizontal ( ( angle / 180 ) * Math . PI )
}
Map_QM . controls . setRotateHorizontal ( Map_QM . controls . getRotateHorizontal ( ) ) ;
Map_QM . controls . setRotateHorizontal ( ( angle / 180 ) * Math . PI )
} ,
/ * *
* @ api { 方法 } rotateAngle ( angle ) 改变垂直角度
@ -5779,7 +5781,7 @@ Facilities_QM.prototype.renderIcon = function (obj, _this, isShow = true, ele =
sc . style . display = "flex" ;
sc . style . width = "47px" ;
sc . style . justifyContent = "center" ;
sc . innerHTML = ` <img src="./static/img/num_bg.png" width="47" height="24" /><span style="color: #A6976F; font-size: 14px; position: absolute; top: 2 px;"> ${ obj . title } </span> ` ;
sc . innerHTML = ` <img src="./static/img/num_bg.png" width="47" height="24" /><span style="color: #A6976F; font-size: 14px; position: absolute; top: 4 px;"> ${ obj . title } </span> ` ;
shopDiv . append ( sc ) ;
shopDiv . dataset . name = obj . title ;
shopDiv . dataset . nameEn = Map_QM . util . iconEn [ obj . title ] ;