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, "requestRenderMode": true,
"orderIndependentTranslucency": false, "orderIndependentTranslucency": false,
"globe": { "globe": {
"depthTestAgainstTerrain": true, "depthTestAgainstTerrain": false,
"baseColor": "#546a53", "baseColor": "#546a53",
"showGroundAtmosphere": true, "showGroundAtmosphere": true,
"enableLighting": false "enableLighting": false

View File

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

View File

@ -426,6 +426,8 @@ onMounted(async () => {
name: item.name, name: item.name,
type: "3dtiles", type: "3dtiles",
url: item.url, url: item.url,
opacity: 1,
luminanceAtZenith: 1,
maximumScreenSpaceError: 1, maximumScreenSpaceError: 1,
style: { style: {
color: { color: {
@ -972,6 +974,10 @@ const closeSearch = () => {
}; };
const initMars3d = (option: any) => { const initMars3d = (option: any) => {
map = new mars3d.Map("mars3dContainer", option); 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 // api
queryPoi = new mars3d.query.GaodePOI({ queryPoi = new mars3d.query.GaodePOI({
key: ["ad31e514e7e740179d6d8f182720bcf5"] key: ["ad31e514e7e740179d6d8f182720bcf5"]