|
|
|
@ -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) 改变垂直角度 |
|
|
|
|