fix: BUG修改

This commit is contained in:
kun 2023-11-22 19:00:08 +08:00
parent f5281f45aa
commit a11a9ad51b
3 changed files with 15 additions and 2 deletions

View File

@ -15,7 +15,7 @@
"requestRenderMode": true,
"orderIndependentTranslucency": false,
"globe": {
"depthTestAgainstTerrain": true,
"depthTestAgainstTerrain": false,
"baseColor": "#546a53",
"showGroundAtmosphere": true,
"enableLighting": false

View File

@ -430,12 +430,14 @@ onMounted(async () => {
name: item.name,
type: "3dtiles",
url: item.url,
maximumScreenSpaceError: 1,
// maximumScreenSpaceError: 1,
style: {
color: {
conditions: [["true", "color('" + item.color + "')"]]
}
},
opacity: 1,
luminanceAtZenith: 1,
show: item.show ? item.show : false,
flyTo: item.flyTo ? item.flyTo : false
};
@ -561,6 +563,7 @@ const showMapData = (arr: any) => {
// //
// newRoutePath.flyTo();
// newRoutePath.start();
flyRoamShow.value = true;
} else {
graphicLayer.addGraphic(item);
console.log("111111111111111");
@ -985,6 +988,10 @@ const closeSearch = () => {
};
const initMars3d = (option: any) => {
map = new mars3d.Map("mars3dContainer", option);
map.fixedLight = true; // gltf
//
map.clock.currentTime = Cesium.JulianDate.fromDate(new Date("2022-11-01 12:00:00"));
// api
queryPoi = new mars3d.query.GaodePOI({
key: ["ad31e514e7e740179d6d8f182720bcf5"]

View File

@ -426,6 +426,8 @@ onMounted(async () => {
name: item.name,
type: "3dtiles",
url: item.url,
opacity: 1,
luminanceAtZenith: 1,
maximumScreenSpaceError: 1,
style: {
color: {
@ -972,6 +974,10 @@ const closeSearch = () => {
};
const initMars3d = (option: any) => {
map = new mars3d.Map("mars3dContainer", option);
map.fixedLight = true; // gltf
//
map.clock.currentTime = Cesium.JulianDate.fromDate(new Date("2022-11-01 12:00:00"));
// api
queryPoi = new mars3d.query.GaodePOI({
key: ["ad31e514e7e740179d6d8f182720bcf5"]