<!DOCTYPE html>
<html lang="en">
<head>
<!-- Use correct character set. -->
<meta charset="utf-8">
<!-- Tell IE to use the latest, best version. -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Make the application on mobile take up the full browser screen and disable user scaling. -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>Hello World!</title>
<script src="../Build/CesiumUnminified/Cesium.js"></script>
<style>
@import url(../Build/CesiumUnminified/Widgets/widgets.css);
html,
body,
#cesiumContainer {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
.canvas {
position: absolute;
left: 10px;
top: 10px;
display:none;
}
#canvas-a {
top: 10px;
}
#canvas-b {
top: 120px;
}
</style>
</head>
<body>
<div id="cesiumContainer" class="fullSize">
<div id="cesiumxin" style="position:fixed;left:0;z-index:99"><a href="http://cesium.xin" style="color:aliceblue;text-decoration:none">cesium中文网 http://cesium.xin </a></div>
</div>
<div id="loadingOverlay"><h1>Loading...</h1></div>
<div id="toolbar"></div>
<canvas id="canvas-a" class="canvas" width="700" height="100"></canvas>
<canvas id="canvas-b" class="canvas" width="700" height="100"></canvas>
<script>
var viewer = new Cesium.Viewer('cesiumContainer',
{
imageryProvider: new Cesium.SingleTileImageryProvider({
url: '../img/worldimage.jpg'
}),
homeButton: false,
//sceneModePicker: false,
baseLayerPicker: false,
navigationHelpButton: false,
animation: false,
timeline: false,
fullscreenButton: false,
vrButton: false
});
function computeCircle(radius) {
var positions = [];
for (var i = 0; i < 360; i++) {
var radians = Cesium.Math.toRadians(i);
positions.push(new Cesium.Cartesian2(radius * Math.cos(radians), radius * Math.sin(radians)));
}
return positions;
}
var startTime = Cesium.JulianDate.now();
// var redTube = viewer.entities.add({
// name : 'Red tube with rounded corners',
// polylineVolume : {
// positions : Cesium.Cartesian3.fromDegreesArray([-85.0, 32.0,
// -85.0, 36.0]),
// // ,
// // -89.0, 36.0]),
// shape : computeCircle(6000.0),
// // material : Cesium.Color.RED.withAlpha(0.5)
// // material : './lesson29/arrow.png'
// // material:new Cesium.ImageMaterialProperty({
// // image:'./lesson29/arrow.png',
// // repeat:new Cesium.Cartesian2(30.0, 1.0),
// // color:Cesium.Color.RED.withAlpha(0.5),
// // // transparent:true
// // })
// // material : new Cesium.CallbackProperty(function(){
// // return new Cesium.ImageMaterialProperty({
// // image:'./lesson29/arrow.png',
// // // repeat:new Cesium.Cartesian2(3.0, 1.0),
// // // color:Cesium.Color.RED.withAlpha(0.5),
// // // transparent:true
// // })
// // }, false),
// // material : new Cesium.CallbackProperty(function() { return me.color;}, false),
// // material : new Cesium.ColorMaterialProperty(new Cesium.CallbackProperty(function() {
// // return Cesium.Color.fromRandom({
// // minimumRed : 0.75,
// // minimumGreen : 0.75,
// // minimumBlue : 0.75,
// // alpha : 1.0
// // });
// // }, false))
// material : new Cesium.ImageMaterialProperty(new Cesium.CallbackProperty(function() {
// return new Cesium.ImageMaterialProperty({
// image:'./arrow.png',
// // repeat:new Cesium.Cartesian2(3.0, 1.0),
// // color:Cesium.Color.RED.withAlpha(0.5),
// // transparent:true
// });
// }, false))
// }
// });
// var redPlane = viewer.entities.add({
// name : 'Red plane with black outline',
// position: Cesium.Cartesian3.fromDegrees(-107.0, 40.0, 300000.0),
// plane : {
// plane : new Cesium.Plane(Cesium.Cartesian3.UNIT_Y, 0.0),
// dimensions : new Cesium.Cartesian2(400000.0, 300000.0),
// material : Cesium.Color.RED.withAlpha(0.5),
// outline : true,
// outlineColor : Cesium.Color.BLACK
// }
// });
// var redCorridor = viewer.entities.add({
// name : 'Red corridor on surface with rounded corners',
// corridor : {
// positions : Cesium.Cartesian3.fromDegreesArray([
// -100.0, 40.0,
// -105.0, 40.0,
// -105.0, 35.0
// ]),
// width : 200000.0,
// // material : Cesium.Color.RED.withAlpha(0.5)
// material : './lesson29/arrow.png'
// }
// });
// var greenCorridor = viewer.entities.add({
// name : 'Green corridor at height with mitered corners and outline',
// corridor : {
// positions : Cesium.Cartesian3.fromDegreesArray([
// -90.0, 40.0,
// -95.0, 40.0,
// -95.0, 35.0
// ]),
// height: 100000.0,
// width : 200000.0,
// cornerType: Cesium.CornerType.MITERED,
// // material : Cesium.Color.GREEN,
// // material :new Cesium.ImageMaterialProperty({
// // image:'./lesson29/arrow.png',
// // repeat:new Cesium.Cartesian2(40.0, 4.0),
// // transparent:true
// // }),
// material : new Cesium.ImageMaterialProperty(new Cesium.CallbackProperty(function() {
// return new Cesium.ImageMaterialProperty({
// image:'./arrow.png',
// // repeat:new Cesium.Cartesian2(3.0, 1.0),
// // color:Cesium.Color.RED.withAlpha(0.5),
// // transparent:true
// });
// }, true)),
// outline : true // height required for outlines to display
// }
// });
// viewer.zoomTo(viewer.entities);
// var viewer = new
没有合适的资源?快使用搜索试试~ 我知道了~
cesium 实现样例 demo 快速上手
共1622个文件
b3dm:707个
png:281个
json:280个
需积分: 5 0 下载量 6 浏览量
2023-08-21
10:14:08
上传
评论
收藏 111.45MB ZIP 举报
温馨提示
cesium 实现样例 demo 快速上手
资源推荐
资源详情
资源评论
收起资源包目录
cesium 实现样例 demo 快速上手 (1622个子文件)
tt.avi 3.17MB
Tile_p000_p001_L23_00001000.b3dm 544KB
Tile_p000_p001_L23_00013100.b3dm 505KB
Tile_p000_p001_L22_0000100.b3dm 496KB
Tile_p000_p001_L23_00003000.b3dm 453KB
Tile_p000_p001_L22_0001310.b3dm 440KB
Tile_p000_p000_L22_0000100.b3dm 434KB
Tile_p000_p001_L23_00011000.b3dm 427KB
Tile_p001_p000_L22_0002000.b3dm 410KB
Tile_p000_p001_L23_00002000.b3dm 405KB
Tile_p000_p001_L22_0000300.b3dm 403KB
Tile_p000_p001_L23_00001100.b3dm 401KB
Tile_p000_p001_L22_0000200.b3dm 397KB
Tile_p000_p001_L23_00031100.b3dm 379KB
Tile_p000_p001_L23_00011200.b3dm 376KB
Tile_p000_p001_L22_0000110.b3dm 376KB
Tile_p000_p001_L23_00000000.b3dm 372KB
Tile_p000_p001_L22_0001100.b3dm 364KB
Tile_p000_p001_L22_0000000.b3dm 362KB
Tile_p000_p001_L22_0003110.b3dm 359KB
Tile_p000_p000_L23_00013000.b3dm 343KB
Tile_p000_p000_L22_0001300.b3dm 343KB
Tile_p000_p001_L23_00000100.b3dm 335KB
Tile_p000_p001_L22_0001120.b3dm 332KB
Tile_p001_p001_L23_00043000.b3dm 327KB
Tile_p000_p001_L23_00012000.b3dm 324KB
Tile_p000_p000_L21_000010.b3dm 321KB
Tile_p001_p000_L21_000200.b3dm 320KB
Tile_p000_p000_L22_0002100.b3dm 318KB
Tile_p000_p000_L22_0001200.b3dm 317KB
Tile_p000_p000_L23_00021000.b3dm 316KB
Tile_p000_p001_L22_0000010.b3dm 315KB
Tile_p000_p000_L22_0000000.b3dm 314KB
Tile_p000_p000_L22_0002110.b3dm 314KB
Tile_p000_p000_L22_0002300.b3dm 313KB
Tile_p000_p000_L23_00021100.b3dm 313KB
Tile_p000_p000_L23_00023000.b3dm 311KB
Tile_p000_p000_L22_0001010.b3dm 310KB
Tile_p000_p001_L23_00011100.b3dm 309KB
Tile_p001_p001_L22_0004300.b3dm 306KB
Tile_p000_p001_L21_000010.b3dm 301KB
Tile_p001_p001_L22_0000000.b3dm 300KB
Tile_p001_p001_L23_00000000.b3dm 299KB
Tile_p000_p001_L23_00011300.b3dm 299KB
Tile_p000_p001_L22_0001200.b3dm 295KB
Tile_p000_p000_L23_00011000.b3dm 292KB
Tile_p000_p000_L23_00011100.b3dm 292KB
Tile_p000_p000_L22_0001110.b3dm 291KB
Tile_p000_p000_L22_0001100.b3dm 291KB
Tile_p000_p000_L22_0001000.b3dm 290KB
Tile_p000_p001_L23_00031000.b3dm 290KB
Tile_p000_p001_L23_00010100.b3dm 279KB
Tile_p000_p001_L23_00034000.b3dm 277KB
Tile_p000_p001_L22_0001130.b3dm 277KB
Tile_p000_p000_L22_0002210.b3dm 275KB
Tile_p000_p000_L23_00022100.b3dm 274KB
Tile_p000_p000_L22_0000300.b3dm 273KB
Tile_p000_p001_L22_0001110.b3dm 272KB
Tile_p000_p000_L23_00003000.b3dm 271KB
Tile_p000_p001_L23_00012200.b3dm 269KB
Tile_p001_p001_L23_00042100.b3dm 267KB
Tile_p000_p001_L22_0003100.b3dm 262KB
Tile_p000_p001_L22_0003400.b3dm 259KB
Tile_p000_p001_L22_0001010.b3dm 258KB
Tile_p001_p000_L22_0003300.b3dm 257KB
Tile_p001_p000_L23_00033000.b3dm 257KB
Tile_p000_p001_L23_00012100.b3dm 254KB
Tile_p001_p001_L22_0004210.b3dm 252KB
Tile_p000_p001_L21_000020.b3dm 252KB
Tile_p000_p001_L21_000030.b3dm 250KB
Tile_p000_p001_L23_00034100.b3dm 245KB
Tile_p001_p001_L21_000000.b3dm 243KB
Tile_p000_p000_L21_000000.b3dm 243KB
Tile_p001_p001_L22_0000010.b3dm 241KB
Tile_p000_p001_L23_00030000.b3dm 241KB
Tile_p000_p001_L23_00003100.b3dm 241KB
Tile_p000_p001_L23_00010000.b3dm 240KB
Tile_p000_p001_L21_000000.b3dm 240KB
Tile_p001_p001_L23_00000100.b3dm 239KB
Tile_p000_p001_L22_0001220.b3dm 237KB
Tile_p000_p001_L22_0003410.b3dm 236KB
Tile_p001_p000_L23_00005000.b3dm 235KB
Tile_p000_p001_L21_000011.b3dm 231KB
Tile_p000_p001_L21_000131.b3dm 231KB
Tile_p000_p000_L21_000130.b3dm 230KB
Tile_p001_p000_L22_0000510.b3dm 226KB
Tile_p001_p000_L22_0000500.b3dm 226KB
Tile_p000_p001_L22_0000310.b3dm 225KB
Tile_p001_p000_L23_00005100.b3dm 225KB
Tile_p000_p000_L21_000230.b3dm 223KB
Tile_p001_p000_L22_0002600.b3dm 223KB
Tile_p001_p001_L23_00053300.b3dm 221KB
Tile_p001_p001_L23_00041000.b3dm 220KB
Tile_p000_p001_L22_0001210.b3dm 220KB
Tile_p001_p001_L23_00053100.b3dm 218KB
Tile_p001_p001_L23_00051000.b3dm 218KB
Tile_p000_p001_L22_0003000.b3dm 217KB
Tile_p000_p001_L19_0001.b3dm 216KB
Tile_p000_p000_L21_000210.b3dm 215KB
Tile_p000_p000_L21_000211.b3dm 215KB
共 1622 条
- 1
- 2
- 3
- 4
- 5
- 6
- 17
资源评论
yanhuaidong126
- 粉丝: 0
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功