fix: BUG修改
This commit is contained in:
parent
f5281f45aa
commit
a11a9ad51b
@ -15,7 +15,7 @@
|
||||
"requestRenderMode": true,
|
||||
"orderIndependentTranslucency": false,
|
||||
"globe": {
|
||||
"depthTestAgainstTerrain": true,
|
||||
"depthTestAgainstTerrain": false,
|
||||
"baseColor": "#546a53",
|
||||
"showGroundAtmosphere": true,
|
||||
"enableLighting": false
|
||||
|
||||
@ -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"]
|
||||
|
||||
@ -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"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user