SymbolTextStyle

new SuperMap3D.SymbolTextStyle(options)

Symbol text style
Name Type Description
options Object optional Objects have the following properties:
Name Type Default Description
height Number 7 optional Font height, geographical unit
foreColor Color Color.BLACK optional Font color
backColor Color Color.BLACK optional Font background color (font outer line color)
outline Boolean false optional font out line
fontName String "Song font" optional Font name
italic Boolean false optional Italic
bold Boolean false optional Bold
align Number 0 optional Font alignment
italicAngle Number 0.0 optional Font tilt angle
shadow Boolean false optional Font shadow
sizeFixed Number 0.0 optional Font fixed size
underline Boolean false optional Underline
rotation Number 0.0 optional Rotation angle
strikeout Boolean false optional Strickout
borderSpacingWidth Number 4 optional Spacing width between text background rectangle edge and text edge
outlineWidth Number 1 optional Out line width
fontWidth Number 0.0 optional Font width
opaqueRate Number 255 optional Font opacity
stringAlignment Number 0 optional Alignment
text3DScale Number 1.0 optional Text scale
fontWeight Number 0 optional Stroke width
fontSize Number 20 optional Font size
textBoxColor Number Color optional Text background box color
isShowTextBox Number false optional Whether to display the background box

Members

align : Number

Font alignment

backColor : Color

Font background color

backOpaque : Number

Background color transparency

bold : Boolean

Bold

borderSpacingWidth : Number

Spacing width between text background rectangle edge and text edge

fontHeight : Number

Font height

fontName : String

Font name

fontSize : Number

Font size

fontWeight : Number

Stroke width

fontWidth : Number

Font width

foreColor : Color

Font color

isShowTextBox : Boolean

Whether to display the text background color and background box

italic : Boolean

Italic

italicAngle : Number

Font tilt angle

opaqueRate : Number

Font opacity

outline : Boolean

Whether to display font outline

outlineWidth : Number

Font outline width

shadow : Number

Text shadow

sizeFixed : Number

Fixed size

strikeout : Boolean

Strickout

stringAlignment : Number

Alignment

text3DScale : Number

Text scale

textBoxColor : Color

Text background box color

textBoxLineColor : Color

Text border color

underline : Boolean

Underline