Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IFeatureTextStyleOptions

文本样式配置参数

export
interface

IFeatureTextStyleOptions

Hierarchy

  • IFeatureTextStyleOptions

Index

Properties

文本左右对齐方式 start|end|left|center|right。默认是center

memberof

IFeatureTextStyleOptions

文字旋转角度。二维和三维中默认均使用弧度,如果字段值是角度,可以使用degreeToArc的loader进行转换 如配置为 $WIND_DIR#degreeToArc,表示从WIND_DIR字段获取值,然后使用degreeToArc转换为弧度

memberof

IFeatureTextStyleOptions

avoidCollison?: FeatureBooleanField

是否避免遮盖,默认为false

memberof

IFeatureTextStyleOptions

backCircle?: FeatureBooleanField

文字背景色是否使用圆形,默认为false

memberof

IFeatureTextStyleOptions

backColor?: FeatureColorField

文字背景色

memberof

IFeatureTextStyleOptions

backHeight?: FeatureNumberField

背景色的高度

memberof

IFeatureTextStyleOptions

文字背景色的留边,默认为[5,0]

memberof

IFeatureTextStyleOptions

backRoundRadius?: FeatureNumberField

文字背景色的圆角像素数,默认为6px

memberof

IFeatureTextStyleOptions

backRoundRect?: FeatureBooleanField

文字背景色是否使用圆角矩形,默认为false。此配置优先级高于backCircle

memberof

IFeatureTextStyleOptions

backShadowBlur?: FeatureNumberField

背景色阴影模糊量。默认6

memberof

IFeatureTextStyleOptions

backShadowColor?: FeatureColorField

背景色阴影的颜色。默认没有阴影

memberof

IFeatureTextStyleOptions

backShadowOffset?: FeatureNumberArrayField

背景色阴影偏移量 [xoffset,yoffset]。默认[3,3]

memberof

IFeatureTextStyleOptions

backStrokeColor?: FeatureColorField

背景色描边颜色

memberof

IFeatureTextStyleOptions

backStrokeDashArray?: FeatureNumberArrayField

背景色的描边线型。默认正常线段。

memberof

IFeatureTextStyleOptions

backStrokeWidth?: FeatureNumberField

背景色描边粗细

memberof

IFeatureTextStyleOptions

backWidth?: FeatureNumberField

背景色的宽度,如果设定了该值则不根据字符串计算宽度,统一采用相同宽度

memberof

IFeatureTextStyleOptions

文本上下对齐方式 top|bottom|middle|alphabetic|hanging。默认是middle

memberof

IFeatureTextStyleOptions

collisionExtendSize?: FeatureNumberArrayField

碰撞检测的扩展宽高,用于有背景色时的微调,默认[0,0]

文字颜色

memberof

IFeatureTextStyleOptions

文本内容。必选项。 当使用 $方式获取字段值的时候,如果字段是风速且希望使用风杆表示,则需要增加默认的风杆loader,配置方式为 $属性名#wind,如 $speed#wind

memberof

IFeatureTextStyleOptions

是否进行深度检测,默认是

memberof

IFeatureTextStyleOptions

眼坐标系的偏移量,单位米,仅支持Cesium,默认[0,0,0]

字体。默认 "12px 微软雅黑"

memberof

IFeatureTextStyleOptions

forceImage?: FeatureBooleanField

是否强制使用图片方式渲染,如果是将会通过canvas先生成图片,然后将图片渲染到地图。大量中文建议使用。 仅支持3D点图层。

memberof

IFeatureTextStyleOptions

forceImageSize?: FeatureNumberArrayField

使用图片渲染文字时,图片画布的大小

memberof

IFeatureTextStyleOptions

heightMode?: "none" | "relative" | "clamp"

高度模式。none表示绝对高度,relative表示相对于当前位置地表以上高度,clamp表示贴地。 默认为none

memberof

IFeatureTextStyleOptions

文字离中心点的偏移量

memberof

IFeatureTextStyleOptions

shadowBlur?: FeatureNumberField

阴影模糊效果。默认10

memberof

IFeatureTextStyleOptions

shadowColor?: FeatureColorField

阴影的颜色。默认没有阴影

memberof

IFeatureTextStyleOptions

阴影的偏移量 [xoffset,yoffset]。默认[10,10]

memberof

IFeatureTextStyleOptions

strokeColor?: FeatureColorField

文字描边颜色

memberof

IFeatureTextStyleOptions

strokeWidth?: FeatureNumberField

文字描边宽度

memberof

IFeatureTextStyleOptions

文字是否可见,默认可见

memberof

IFeatureTextStyleOptions

Generated using TypeDoc