瀏覽代碼

优化地图视角参数

彭宇 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),