liuyg
2021-12-22 4597db2e777802b0a6422af3e8f27f13e35fc9c6
+弹窗位置和飞入视角调整
1 files modified
12 ■■■■ changed files
src/store/modules/mobile.js 12 ●●●● patch | view | raw | blame | history
src/store/modules/mobile.js
@@ -93,7 +93,7 @@
                var ellipsoid = state.mviewer.scene.globe.ellipsoid;
                var cartographic = global.DC.Namespace.Cesium.Cartographic.fromDegrees(
                    data.lntLat[0],
                    data.lntLat[1] - 0.00006,
                    data.lntLat[1] - 0.00048,
                    "90.648862227"
                );
                data.position = ellipsoid.cartographicToCartesian(cartographic);
@@ -117,15 +117,15 @@
            //基于高度基础设置
            // h:1530
            // lnt: + 0.01187 x轴
            // Lat: - 0.0108 y轴
            // lnt: + 0.01187 x轴 大是向左
            // Lat: - 0.0108 y轴 减是上
            // h:4000
            // lnt: + 0.01187 x轴
            // Lat: - 0.0308y轴
            let Position = new global.DC.Position(//转坐标
                +data.lntLat[0] + 0.01187,
                +data.lntLat[1] - 0.0108,
                1530,
                +data.lntLat[0] + 0.01197,
                +data.lntLat[1] - 0.0021,
                330,
                0,
                -45
            );