Commit 0e3b550c authored by 纪泽龙's avatar 纪泽龙

Merge branch 'jzl'

parents b4de4b7a fbb41fa6
/*
* @Author: your name
* @Date: 2021-12-07 14:19:18
* @LastEditTime: 2022-09-30 16:21:39
* @LastEditTime: 2022-10-07 15:24:09
* @LastEditors: 纪泽龙 jizelong@qq.com
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /cesium-vue/src/utils/seieumClass.js
......@@ -276,7 +276,7 @@ export default class CreateCesium {
const longitudeString = Cesium.Math.toDegrees(cartographic.longitude);
const latitudeString = Cesium.Math.toDegrees(cartographic.latitude);
var gps = [longitudeString, latitudeString];
console.log("tileset加载完毕",gps);
console.log("tileset加载完毕", gps);
// 阻塞转换成高德坐标
let gaodeLnglat = (await this.gpsToGaode(gps))[0];
console.log("坐标换算完毕", gaodeLnglat);
......@@ -321,10 +321,8 @@ export default class CreateCesium {
setTimeout(() => {
this.viewer.scene.camera.flyTo({
destination: Cesium.Cartesian3.fromDegrees(
// 114.08722973596568,
114.08026526196012,
38.25051773015095,
// 38.251679644548084,
114.08040670822453,
38.24912720167037,
784
), //定位坐标点,建议使用谷歌地球坐标位置无偏差
orientation: {
......@@ -338,7 +336,6 @@ export default class CreateCesium {
pitch: Cesium.Math.toRadians(-81.61), // 倾斜角度
// roll: 1.3,
},
duration: 0.1, //定位的时间间隔
});
setTimeout(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment