北京经济技术开发区经开区虚拟城市项目-【前端】-Web
suerprisePlus
2024-11-19 b37aea3e032a573ad0ae6172ee4e08144db6758f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!-- 版权所有 泰瑞数创(北京)科技有限公司 -->
<!DOCTYPE html>
<html lang="en">
 
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CIMSDK初始化</title>
    <link rel="stylesheet" href="./CimSDK/CimSDK.min.css">
</head>
<body>
    <div id="sdkContainer"></div>
    <script src="./SmartEarthSDK/Workers/jquery-2.0.3.js"></script>
    <script src="./CimSDK/CimSDK.min.js"></script>
    <script>
        window.sgworld = new SmartEarth.EarthCtrl("sdkContainer");
        window.Viewer = sgworld._Viewer;
        sgworld.Navigate.Stop(); //取消飞行状态
        sgworld.Navigate.jumpTo({      //跳转视角
            destination: new SmartEarth.Cesium.Cartesian3.fromDegrees(93.53987, 24.77445, 25793500.60)
        });
        //显示fps
        sgworld._Viewer.scene.debugShowFramesPerSecond = true;
    </script>
</body>
 
</html>