mirror of
https://github.com/jiawanlong/Cesium-Examples.git
synced 2025-07-04 15:17:36 +00:00
加载超图S3M数据
This commit is contained in:
parent
f669039611
commit
bda2a7f762
Binary file not shown.
After Width: | Height: | Size: 258 KiB |
Binary file not shown.
After Width: | Height: | Size: 414 KiB |
BIN
examples/cesiumEx/SuperMap3D/Assets/Textures/grepin.png
Normal file
BIN
examples/cesiumEx/SuperMap3D/Assets/Textures/grepin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.1 KiB |
BIN
examples/cesiumEx/SuperMap3D/Assets/Textures/middle-edit.png
Normal file
BIN
examples/cesiumEx/SuperMap3D/Assets/Textures/middle-edit.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 388 B |
BIN
examples/cesiumEx/SuperMap3D/Assets/Textures/vertex-edit.png
Normal file
BIN
examples/cesiumEx/SuperMap3D/Assets/Textures/vertex-edit.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 410 B |
51
examples/cesiumEx/SuperMap3D/SuperMap3D.js
Normal file
51
examples/cesiumEx/SuperMap3D/SuperMap3D.js
Normal file
File diff suppressed because one or more lines are too long
BIN
examples/cesiumEx/SuperMap3D/ThirdParty/basis_transcoder.wasm
vendored
Normal file
BIN
examples/cesiumEx/SuperMap3D/ThirdParty/basis_transcoder.wasm
vendored
Normal file
Binary file not shown.
BIN
examples/cesiumEx/SuperMap3D/ThirdParty/crunch.wasm
vendored
Normal file
BIN
examples/cesiumEx/SuperMap3D/ThirdParty/crunch.wasm
vendored
Normal file
Binary file not shown.
BIN
examples/cesiumEx/SuperMap3D/ThirdParty/draco_decoder_new.wasm
vendored
Normal file
BIN
examples/cesiumEx/SuperMap3D/ThirdParty/draco_decoder_new.wasm
vendored
Normal file
Binary file not shown.
@ -100,6 +100,12 @@ var exampleConfig = {
|
|||||||
thumbnail: "实时在线云图.jpg",
|
thumbnail: "实时在线云图.jpg",
|
||||||
fileName: "实时在线云图"
|
fileName: "实时在线云图"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "加载超图S3M模型",
|
||||||
|
name_en: "加载超图S3M模型",
|
||||||
|
thumbnail: "s3m.jpg",
|
||||||
|
fileName: "s3m"
|
||||||
|
},
|
||||||
// {
|
// {
|
||||||
// name: "韩国空难",
|
// name: "韩国空难",
|
||||||
// name_en: "韩国空难",
|
// name_en: "韩国空难",
|
||||||
@ -304,6 +310,12 @@ var exampleConfig = {
|
|||||||
thumbnail: "1.22、根据点获取高度.jpg",
|
thumbnail: "1.22、根据点获取高度.jpg",
|
||||||
fileName: "1.22、根据点获取高度"
|
fileName: "1.22、根据点获取高度"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "加载超图S3M模型",
|
||||||
|
name_en: "加载超图S3M模型",
|
||||||
|
thumbnail: "s3m.jpg",
|
||||||
|
fileName: "s3m"
|
||||||
|
},
|
||||||
|
|
||||||
// {
|
// {
|
||||||
// name: "相机",
|
// name: "相机",
|
||||||
@ -647,6 +659,7 @@ var exampleConfig = {
|
|||||||
thumbnail: "2.4.8、风力发电机.jpg",
|
thumbnail: "2.4.8、风力发电机.jpg",
|
||||||
fileName: "2.4.8、风力发电机"
|
fileName: "2.4.8、风力发电机"
|
||||||
},
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -701,6 +714,12 @@ var exampleConfig = {
|
|||||||
thumbnail: "3.1.7、模型压平.jpg",
|
thumbnail: "3.1.7、模型压平.jpg",
|
||||||
fileName: "3.1.7、模型压平"
|
fileName: "3.1.7、模型压平"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "加载超图S3M模型",
|
||||||
|
name_en: "加载超图S3M模型",
|
||||||
|
thumbnail: "s3m.jpg",
|
||||||
|
fileName: "s3m"
|
||||||
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
BIN
examples/cesiumEx/img/s3m.jpg
Normal file
BIN
examples/cesiumEx/img/s3m.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.6 KiB |
32
examples/cesiumEx/s3m.html
Normal file
32
examples/cesiumEx/s3m.html
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<!--********************************************************************
|
||||||
|
* by jiawanlong
|
||||||
|
*********************************************************************-->
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<link rel="stylesheet" href="./../../libs/cesium/Cesium1.98/Widgets/widgets.css">
|
||||||
|
<script type="text/javascript" src="./../../libs/cesium/Cesium1.98/Cesium.js"></script>
|
||||||
|
<script src="./SuperMap3D/SuperMap3D.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body style="margin: 0; overflow: hidden; background: #fff; width: 100%; height: 100%; position: absolute; top: 0">
|
||||||
|
<div id="map" style="margin: 0 auto; width: 100%; height: 100%"></div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
Cesium.Ion.defaultAccessToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJjM2EzNGJmNy02N2RmLTQ0MDMtYjI2MS1hZTJiMTIwZGYwMTYiLCJpZCI6MzA0MzEyLCJpYXQiOjE3NDc3MjM3MTV9.ePQNhuoVuDsi_z00lTm5W26wyW1Adcr1AWetGM6WSXI'
|
||||||
|
|
||||||
|
const viewer = new Cesium.Viewer('map', { });
|
||||||
|
|
||||||
|
let scenes = [
|
||||||
|
// 'http://www.supermapol.com/realspace/services/3D-suofeiya_church/rest/realspace',
|
||||||
|
'https://www.supermapol.com/realspace/services/3D-CBD/rest/realspace',
|
||||||
|
// 'https://www.supermapol.com/realspace/services/3D-CQmodel_wireframe_2000/rest/realspace',
|
||||||
|
// 'https://www.supermapol.com/realspace/services/3D-cloud/rest/realspace'
|
||||||
|
];
|
||||||
|
viewer.scene.open(scenes[0]);
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user