<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>倾斜模型</title>
<link href="./css/widgets.css" rel="stylesheet">
<script src="./js/config.js"></script>
<script type="text/javascript" src="./js/require.min.js" data-main="js/main"></script>
<style>
html, body, #cesiumContainer {
width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden;
}
</style>
</head>
<body>
<div id="cesiumContainer"></div>
<script type="text/javascript">
var viewer;
var host = document.location.toString().match(/file:\/\//)?"http://localhost:8090":'http://' + document.location.host;
function onload(Cesium) {
viewer = new Cesium.Viewer('cesiumContainer');
var scene = viewer.scene;
var widget = viewer.cesiumWidget;
try{
var promise = scene.addS3MTilesLayerByScp(URL_CONFIG.SCP_NM,{
name : 'NM@IOS人工模型数据'
});
Cesium.when(promise,function(layer){
scene.camera.setView({
destination : Cesium.Cartesian3.fromDegrees(120.7330306,27.9854333,600)
});
},function(e){
if (widget._showRenderLoopErrors) {
var title = 'An error occurred while rendering. Rendering has stopped.';
widget.showErrorPanel(title, undefined, e);
}
});
}
catch(e){
if (widget._showRenderLoopErrors) {
var title = 'An error occurred while rendering. Rendering has stopped.';
widget.showErrorPanel(title, undefined, e);
}
}
}
</script>
</body>
</html>