EllipsoidGraphics 描述了一个椭球体,并提供了设置它的外观的属性。
var entity = viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
name: 'Philadelphia',
ellipsoid : {
radii : new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
material : Cesium.Color.RED.withAlpha(0.5),
outline : true,
outlineColor : Cesium.Color.BLACK
}
});
init()
var ellipsoid = new Cesium.EllipsoidGraphics();
ellipsoid.init();
merge(source)
source
— 一个包含要合并到此实例的属性的对象。var ellipsoid1 = new Cesium.EllipsoidGraphics({
radii: new Cesium.Cartesian3(500000.0, 500000.0, 300000.0),
outline: true,
outlineColor: Cesium.Color.WHITE
});
var ellipsoid2 = new Cesium.EllipsoidGraphics({
radii: new Cesium.Cartesian3(750000.0, 750000.0, 1000000.0),
material: Cesium.Color.RED.withAlpha(0.5),
outline: false
});
ellipsoid1.merge(ellipsoid2);
var entity = viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
name: 'Philadelphia',
ellipsoid: {
radii: new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0)
}
});
var entity = viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
name: 'Philadelphia',
ellipsoid: {
radii: new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
innerRadii: new Cesium.Cartesian3(499000.0, 499000.0, 999000.0)
}
});
var entity = viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
name: 'Philadelphia',
ellipsoid: {
radii: new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
material: Cesium.Color.RED.withAlpha(0.5),
outline: true,
outlineColor: Cesium.Color.BLACK,
minimumClock: Cesium.Math.toRadians(45.0)
}
});
var entity = viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
name: 'Philadelphia',
ellipsoid: {
radii: new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
material: Cesium.Color.RED.withAlpha(0.5),
outline: true,
outlineColor: Cesium.Color.BLACK,
maximumClock: Cesium.Math.toRadians(315.0)
}
});
var entity = viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
name: 'Philadelphia',
ellipsoid: {
radii: new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
material: Cesium.Color.RED.withAlpha(0.5),
outline: true,
outlineColor: Cesium.Color.BLACK,
minimumCone: Cesium.Math.toRadians(30.0)
}
});
var entity = viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
name: 'Philadelphia',
ellipsoid: {
radii: new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
material: Cesium.Color.RED.withAlpha(0.5),
outline: true,
outlineColor: Cesium.Color.BLACK,
maximumCone: Cesium.Math.toRadians(60.0)
}
});
var entity = viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
name: 'Philadelphia',
ellipsoid: {
radii: new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
material: Cesium.Color.RED.withAlpha(0.5),
outline: true,
outlineColor: Cesium.Color.BLACK,
stackPartitions: 16
}
});
var entity = viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
name: 'Philadelphia',
ellipsoid: {
radii: new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
material: Cesium.Color.RED.withAlpha(0.5),
outline: true,
outlineColor: Cesium.Color.BLACK,
slicePartitions: 16
}
});
var entity = viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
name: 'Philadelphia',
ellipsoid: {
radii: new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
material: Cesium.Color.RED.withAlpha(0.5),
outline: true,
outlineColor: Cesium.Color.BLACK,
vertexFormat: Cesium.VertexFormat.POSITION_AND_NORMAL
}
});
var entity = viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
name: 'Philadelphia',
ellipsoid: {
radii: new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
material: Cesium.Color.RED.withAlpha(0.5),
outline: true,
outlineColor: Cesium.Color.BLACK,
extrudedHeight: 200000.0
}
});
var entity = viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
name: 'Philadelphia',
ellipsoid: {
radii: new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
material: Cesium.Color.RED.withAlpha(0.5),
outline: true,
outlineColor: Cesium.Color.BLACK,
fill: false
}
});
var entity = viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
name: 'Philadelphia',
ellipsoid: {
radii: new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
material : Cesium.Color.RED.withAlpha(0.5),
outline : true,
outlineColor : Cesium.Color.BLACK
}
});
var entity = viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
name: 'Philadelphia',
ellipsoid: {
radii: new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
material : Cesium.Color.RED.withAlpha(0.5),
outline : true,
outlineColor : Cesium.Color.BLACK
}
});
var entity = viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
name: 'Philadelphia',
ellipsoid: {
radii: new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
material : Cesium.Color.RED.withAlpha(0.5),
outline : true,
outlineColor : Cesium.Color.BLACK
}
});