修改布置图和模型位置
parent
8aae7170dc
commit
fbd71d7dfb
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
|
|
@ -9,19 +9,20 @@ export default class LayerMgr {
|
||||||
|
|
||||||
//加载模型
|
//加载模型
|
||||||
getGltf(viewer) {
|
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({
|
viewer.entities.add({
|
||||||
position: position,
|
position: position,
|
||||||
model: {
|
model: {
|
||||||
uri: `${process.env.PUBLIC_URL}/models/dam/scene.gltf` ,
|
// uri: `${process.env.PUBLIC_URL}/models/dam/scene.gltf` ,
|
||||||
scale: 10,
|
uri: `${process.env.PUBLIC_URL}/models/dam2/gszh_xyz.gltf` ,
|
||||||
|
scale: 0.52,
|
||||||
runAnimations: false
|
runAnimations: false
|
||||||
},
|
},
|
||||||
orientation: Cesium.Transforms.headingPitchRollQuaternion(
|
orientation: Cesium.Transforms.headingPitchRollQuaternion(
|
||||||
position,
|
position,
|
||||||
new Cesium.HeadingPitchRoll(
|
new Cesium.HeadingPitchRoll(
|
||||||
Cesium.Math.toRadians(90),
|
Cesium.Math.toRadians(-88.7),
|
||||||
Cesium.Math.toRadians(0),
|
Cesium.Math.toRadians(0.05),
|
||||||
Cesium.Math.toRadians(0)
|
Cesium.Math.toRadians(0)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
@ -147,6 +148,7 @@ export default class LayerMgr {
|
||||||
let tileset = await Cesium.Cesium3DTileset.fromUrl(
|
let tileset = await Cesium.Cesium3DTileset.fromUrl(
|
||||||
// 'http://res3d.oss-cn-shenzhen.aliyuncs.com/macheng/xiaoyutan/Scene/3DTILE.json',
|
// 'http://res3d.oss-cn-shenzhen.aliyuncs.com/macheng/xiaoyutan/Scene/3DTILE.json',
|
||||||
'https://map1.oss-cn-shenzhen.aliyuncs.com/tsg/tiles2/tileset.json',
|
'https://map1.oss-cn-shenzhen.aliyuncs.com/tsg/tiles2/tileset.json',
|
||||||
|
// `${process.env.PUBLIC_URL}/terrain/tileset.json`,
|
||||||
{
|
{
|
||||||
maximumScreenSpaceError: 20, //精细程度越小越精细
|
maximumScreenSpaceError: 20, //精细程度越小越精细
|
||||||
maximumMemoryUsage: 1000, //不可设置太高,目标机子空闲内存值以内,防止浏览器过于卡
|
maximumMemoryUsage: 1000, //不可设置太高,目标机子空闲内存值以内,防止浏览器过于卡
|
||||||
|
|
|
||||||
|
|
@ -177,8 +177,8 @@
|
||||||
top: 880px;
|
top: 880px;
|
||||||
}
|
}
|
||||||
.gcaqjc_bzt_sy_UPD10{
|
.gcaqjc_bzt_sy_UPD10{
|
||||||
left: 1041px;
|
left: 993px;
|
||||||
top: 883.5px;
|
top: 865px;
|
||||||
}
|
}
|
||||||
.gcaqjc_bzt_sy_UPD16{
|
.gcaqjc_bzt_sy_UPD16{
|
||||||
left: 1069px;
|
left: 1069px;
|
||||||
|
|
@ -186,8 +186,8 @@
|
||||||
}
|
}
|
||||||
//ZB0+132
|
//ZB0+132
|
||||||
.gcaqjc_bzt_sy_UPD7{
|
.gcaqjc_bzt_sy_UPD7{
|
||||||
left: 993px;
|
left: 1041px;
|
||||||
top: 865px;
|
top: 883.5px;
|
||||||
}
|
}
|
||||||
.gcaqjc_bzt_sy_UPD13{
|
.gcaqjc_bzt_sy_UPD13{
|
||||||
left: 1043px;
|
left: 1043px;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue