修改布置图和模型位置

qzc-dev
秦子超 2025-10-17 09:11:37 +08:00
parent 8aae7170dc
commit fbd71d7dfb
9 changed files with 4289 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -9,19 +9,20 @@ export default class LayerMgr {
//加载模型
getGltf(viewer) {
const position = Cesium.Cartesian3.fromDegrees(114.7629, 31.4948,25)
const position = Cesium.Cartesian3.fromDegrees(114.76255, 31.49588,118.5)
viewer.entities.add({
position: position,
model: {
uri: `${process.env.PUBLIC_URL}/models/dam/scene.gltf` ,
scale: 10,
// uri: `${process.env.PUBLIC_URL}/models/dam/scene.gltf` ,
uri: `${process.env.PUBLIC_URL}/models/dam2/gszh_xyz.gltf` ,
scale: 0.52,
runAnimations: false
},
orientation: Cesium.Transforms.headingPitchRollQuaternion(
position,
new Cesium.HeadingPitchRoll(
Cesium.Math.toRadians(90),
Cesium.Math.toRadians(0),
Cesium.Math.toRadians(-88.7),
Cesium.Math.toRadians(0.05),
Cesium.Math.toRadians(0)
)
)
@ -147,6 +148,7 @@ export default class LayerMgr {
let tileset = await Cesium.Cesium3DTileset.fromUrl(
// 'http://res3d.oss-cn-shenzhen.aliyuncs.com/macheng/xiaoyutan/Scene/3DTILE.json',
'https://map1.oss-cn-shenzhen.aliyuncs.com/tsg/tiles2/tileset.json',
// `${process.env.PUBLIC_URL}/terrain/tileset.json`,
{
maximumScreenSpaceError: 20, //精细程度越小越精细
maximumMemoryUsage: 1000, //不可设置太高,目标机子空闲内存值以内,防止浏览器过于卡

View File

@ -177,8 +177,8 @@
top: 880px;
}
.gcaqjc_bzt_sy_UPD10{
left: 1041px;
top: 883.5px;
left: 993px;
top: 865px;
}
.gcaqjc_bzt_sy_UPD16{
left: 1069px;
@ -186,8 +186,8 @@
}
//ZB0+132
.gcaqjc_bzt_sy_UPD7{
left: 993px;
top: 865px;
left: 1041px;
top: 883.5px;
}
.gcaqjc_bzt_sy_UPD13{
left: 1043px;