fix: BUG修改
This commit is contained in:
parent
f5281f45aa
commit
a11a9ad51b
@ -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
|
||||||
|
|||||||
@ -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"]
|
||||||
|
|||||||
@ -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"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user