Commit cda33f02 authored by xinzhedeai's avatar xinzhedeai

update from lcl

parent 81bd35b9
...@@ -8,7 +8,7 @@ import Config from '@/settings' ...@@ -8,7 +8,7 @@ import Config from '@/settings'
// 使请求头可以携带cookie // 使请求头可以携带cookie
axios.defaults.withCredentials = true; axios.defaults.withCredentials = true;
//var baseURL = (VUE_APP_API.ServiceURL || process.env.VUE_APP_LOCAL_API) + '/'; // var baseURL = (VUE_APP_API.ServiceURL || process.env.VUE_APP_LOCAL_API) + '/';
var baseURL = process.env.NODE_ENV var baseURL = process.env.NODE_ENV
=== 'development' ? process.env.VUE_APP_LOCAL_API + '/' : (VUE_APP_API.ServiceURL || process.env.VUE_APP_LOCAL_API) + '/'; === 'development' ? process.env.VUE_APP_LOCAL_API + '/' : (VUE_APP_API.ServiceURL || process.env.VUE_APP_LOCAL_API) + '/';
......
...@@ -681,7 +681,7 @@ export default { ...@@ -681,7 +681,7 @@ export default {
}; };
m.initDeviceVisual = function(){ m.initDeviceVisual = function(){
//m.openVisual(); m.openVisual();
setTimeout(() => { setTimeout(() => {
m.createModel(); m.createModel();
...@@ -691,12 +691,12 @@ export default { ...@@ -691,12 +691,12 @@ export default {
// 视角 // 视角
m.openVisual = function(){ m.openVisual = function(){
fg3d.Assist.flyToLnglat({ fg3d.Assist.flyToLnglat({
longitude:'114.15302607708257', longitude:'121.712245',
latitude:'35.67376649387661', latitude:'36.96346',
height:'714.9822516823059', height:'1000',
heading:'5.843543111393644', heading:'0',
pitch:'-0.28821513593203796', pitch:Cesium.Math.toRadians(-45),
roll:'6.283179332387251', // roll:'6.283179332387251',
duration: 1.5, duration: 1.5,
}); });
}; };
...@@ -1960,6 +1960,7 @@ export default { ...@@ -1960,6 +1960,7 @@ export default {
// 去除版权信息 // 去除版权信息
viewer._cesiumWidget._creditContainer.style.display = "none"; viewer._cesiumWidget._creditContainer.style.display = "none";
var path = process.env.VUE_APP_D3Tileset + '/tileset.json'; var path = process.env.VUE_APP_D3Tileset + '/tileset.json';
console.log('path', path)
var localTile = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({ var localTile = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
url: path, url: path,
//maximumScreenSpaceError:1, //maximumScreenSpaceError:1,
...@@ -2049,7 +2050,7 @@ export default { ...@@ -2049,7 +2050,7 @@ export default {
}, },
setView: function(viewer){ setView: function(viewer){
viewer.camera.setView({ viewer.camera.setView({
destination:Cesium.Cartesian3.fromDegrees(114.14410090364396, 35.68737800343469, 438.5633622755695), destination:Cesium.Cartesian3.fromDegrees(121.712245,36.86346, 200),
orientation:{ orientation:{
// 指向 // 指向
heading: 6.048855026902075, heading: 6.048855026902075,
......
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