サンドキャッスル楕円のアウトライン ジオメトリに従っています。とにかく楕円の線幅を広くする方法があるのだろうか?width 属性を使用してポリラインを広くする例はありますが、ellipseOutlineGeometry オブジェクトを作成する方法はないようです。サンドキャッスルの例では、最後に lineWidth 設定がありますが、これを変更しても楕円の輪郭の幅には影響しないようです。
サンドボックス コード:
// Create the ellipse geometry. To extrude, specify the
// height of the geometry with the extrudedHeight option.
// The numberOfVerticalLines option can be used to specify
// the number of lines connecting the top and bottom of the
// ellipse.
ellipseOutlineGeometry = new Cesium.EllipseOutlineGeometry({
center : Cesium.Cartesian3.fromDegrees(-95.0, 35.0),
semiMinorAxis : 200000.0,
semiMajorAxis : 300000.0,
extrudedHeight : 150000.0,
rotation : Cesium.Math.toRadians(45),
numberOfVerticalLines: 10
});
// Create a geometry instance using the ellipse geometry
// created above.
var extrudedEllipseOutlineInstance = new Cesium.GeometryInstance({
geometry : ellipseOutlineGeometry,
attributes : {
color : Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.WHITE)
}
});
// Add both ellipse outline instances to primitives.
primitives.add(new Cesium.Primitive({
geometryInstances : [ellipseOutlineInstance, extrudedEllipseOutlineInstance],
appearance : new Cesium.PerInstanceColorAppearance({
flat : true,
renderState : {
depthTest : {
enabled : true
},
lineWidth : Math.min(2.0, scene.maximumAliasedLineWidth) //changes here dont seem to affect the actual size?
}
})
}));