소스 검색

优化地图视角参数

彭宇 3 주 전
부모
커밋
1c9fb3b302
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/supermap-2.5d.vue

+ 1 - 1
src/components/supermap-2.5d.vue

@@ -1305,7 +1305,7 @@ export default {
       let that = this
       setTimeout(function() {
         that.viewer.camera.setView({
-          destination: new SuperMap3D.Cartesian3.fromDegrees(Number(longitude), Number(latitude), Number(height)),
+          destination: new SuperMap3D.Cartesian3.fromDegrees(Number(longitude)+Number(0.2), Number(latitude)-Number(1.3), Number(140000)),
           orientation: {
             heading:  SuperMap3D.Math.toRadians(0),
             pitch:  SuperMap3D.Math.toRadians(-45),