Entity API使用Word格式.docx
- 文档编号:8258279
- 上传时间:2023-05-10
- 格式:DOCX
- 页数:22
- 大小:24.19KB
Entity API使用Word格式.docx
《Entity API使用Word格式.docx》由会员分享,可在线阅读,更多相关《Entity API使用Word格式.docx(22页珍藏版)》请在冰点文库上搜索。
polygon
{
5.
hierarchy
Cesium.Cartesian3.fromDegreesArray([//一组地理坐标
6.
-109.080842,45.002073,
7.
-105.91517,45.002073,
8.
-104.058488,44.996596,
9.
-104.053011,43.002989,
10.
-104.053011,41.003906,
11.
-105.728954,40.998429,
12.
-107.919731,41.003906,
13.
-109.04798,40.998429,
14.
-111.047063,40.998429,
15.
-111.047063,42.000709,
16.
-111.047063,44.476286,
17.
-111.05254,45.002073]),
18.
material
Cesium.Color.RED.withAlpha(0.5),
//材质
19.
outline
true,
//是否显示轮廓
20.
outlineColor
Cesium.Color.BLACK
//轮廓的颜色
21.
}
22.});
23.viewer.zoomTo(wyoming);
//缩放、平移视图使实体可见
形状与立体(ShapesandVolumes)
支持的形状与立体列表
(1)
立方体(Boxes):
[javascript]
viewplain
copy
print?
blueBox
2.
Blue
box'
//中心的位置
position:
Cesium.Cartesian3.fromDegrees(-114.0,
40.0,
300000.0),
box
//长宽高
dimensions
Cesium.Cartesian3(400000.0,
300000.0,
500000.0),
Cesium.Color.BLUE
10.});
12.var
redBox
Red
with
black
outline'
Cesium.Cartesian3.fromDegrees(-107.0,
Cesium.Color.RED,
//显示轮廓
21.});
22.
23.var
outlineOnly
24.
Yellow
25.
Cesium.Cartesian3.fromDegrees(-100.0,
26.
27.
28.
fill
false,
//不显示填充
29.
30.
Cesium.Color.YELLOW
31.
32.});
(2)圆和椭圆(Circles
Ellipses)
2.//浮空的绿色圆形
3.var
greenCircle
Cesium.Cartesian3.fromDegrees(-111.0,
150000.0),
Green
circle
at
height'
ellipse
semiMinorAxis
semiMajorAxis
height:
200000.0,
//浮空
Cesium.Color.GREEN
12.});
13.//红色椭圆形,位于地表,带轮廓
14.var
redEllipse
//不带高度
Cesium.Cartesian3.fromDegrees(-103.0,
40.0),
on
surface
250000.0,
400000.0,
23.
Cesium.Color.RED
25.});
26.//蓝色椭圆柱,旋转了角度
27.var
blueEllipse
Cesium.Cartesian3.fromDegrees(-95.0,
100000.0),
translucent,
rotated,
and
extruded
ellipse'
150000.0,
32.
33.
extrudedHeight
//拉伸
34.
rotation
Cesium.Math.toRadians(45),
//旋转
35.
Cesium.Color.BLUE.withAlpha(0.7),
36.
true
37.
38.});
39.
40.viewer.zoomTo(viewer.entities);
(3)走廊(Corridor)
redCorridor
corridor
rounded
corners
positions
Cesium.Cartesian3.fromDegreesArray([
-100.0,
-105.0,
35.0
]),
width
14.});
16.var
greenCorridor
height
mitered
corners'
Cesium.Cartesian3.fromDegreesArray(
[
-90.0,
-95.0,
100000.0,
cornerType:
Cesium.CornerType.MITERED,
29.});
31.var
blueCorridor
beveled
80.0,
-85.0,
38.
40.
41.
42.
Cesium.CornerType.BEVELED,
43.
Cesium.Color.BLUE.withAlpha(0.5),
44.
45.
46.
47.});
(4)圆柱和圆锥(CylinderCones)
greenCylinder
cylinder
200000.0),
//圆柱
length
topRadius
bottomRadius
Cesium.Color.GREEN,
Cesium.Color.DARK_GREEN
redCone
cone'
Cesium.Cartesian3.fromDegrees(-105.0,
{//圆锥
0.0,
23.});
(5)
多边形(Polygons)
redPolygon
贴着地表的多边形'
Cesium.Cartesian3.fromDegreesArray([-115.0,
37.0,
-115.0,
32.0,
-107.0,
33.0,
-102.0,
31.0,
35.0]),
11.});
13.var
greenPolygon
绿色拉伸多边形'
Cesium.Cartesian3.fromDegreesArray([-108.0,
42.0,
-104.0,
40.0]),
extrudedHeight:
500000.0,
24.var
orangePolygon
每个顶点具有不同拉伸高度的橘色多边形'
Cesium.Cartesian3.fromDegreesArrayHeights(
[-108.0,
25.0,
100000,
30.0,
-108.0,
300000]),
0,
perPositionHeight
Cesium.Color.ORANGE,
40.var
bluePolygon
具有挖空效果的蓝色多边形'
[-99.0,
47.
48.
-99.0,
49.
holes
[{
50.
51.
-97.0,
52.
39.0,
53.
-87.0,
54.
31.0
55.
56.
57.
58.
59.
-89.0,
60.
61.
37.0
62.
63.
64.
65.
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Entity API使用 API 使用