option |
object
|
可选
参数对象{
Name: "",
text: "",
font_size: '30px',
font_family:'sans-serif'
stylet: this._cesium.LabelStyle.FILL,
fillColor: this._cesium.Color.WHITE,// optional A Property specifying the fill Color.
outlineColor: this._cesium.Color.BLACK,// optional A Property specifying the outline Color.
outlineWidth: 1.0,// optional A numeric Property specifying the outline width.
show: true,// optional A boolean Property specifying the visibility of the label.
showBackground: false,// optional A boolean Property specifying the visibility of the background behind the label.
backgroundColor: new this._cesiumColor(0.165, 0.165, 0.165, 0.8),//optional A Property specifying the background Color.
backgroundPadding: new Cartesian2(7, 5),//optional A Cartesian2 Property specifying the horizontal and vertical background padding in pixels.
scale: 1.0,//optional A numeric Property specifying the scale to apply to the text.
horizontalOrigin: this._cesiumHorizontalOrigin.CENTER, //optional A Property specifying the HorizontalOrigin.
verticalOrigin: this._cesium.VerticalOrigin.CENTER,// optional A Property specifying the VerticalOrigin.
eyeOffset: this._cesium.Cartesian3.ZERO,// optional A Cartesian3 Property specifying the eye offset.
pixelOffset: this._cesium.Cartesian2.ZERO,// optional A Cartesian2 Property specifying the pixel offset.
heightReference: this._cesium.HeightReference.NONE,// optional A Property specifying what the height is relative to.
near: 0,
far: 5000
} |