Class: SymbolText

SuperMap.Plot.SymbolText

标号注记。

new SuperMap.Plot.SymbolText(textContent, textPosition, style, options)

common/plot/SymbolText.js, line 10
Name Type Description
textContent string

文字内容。

textPosition SuperMap.Plot.AnnoPosition

文字相对标号的位置。

style Object

文字的样式。

options Object

对象标注参数。

Name Type Description
offsetX float 可选

文字内容在X方向的偏移量。

offsetY float 可选

文字内容在Y方向的偏移量。

Members

offsetXfloat

文字内容在X方向的偏移量,单位是像素。

offsetYfloat

文字内容在Y方向的偏移量, 单位是像素。

styleObject

文字的样式。

textContentstring

文字内容。

文字相对标号的位置。

Methods

clone(){SuperMap.Plot.SymbolText}

common/plot/SymbolText.js, line 73

克隆对象标注对象。

Returns:
Type Description
SuperMap.Plot.SymbolText 克隆后的对象标注对象。

destroy()

common/plot/SymbolText.js, line 62

销毁图形对象数据。

parseSymbolData(){SuperMap.Plot.SymbolText}

common/plot/SymbolText.js, line 106

解析对象标注数据。

Returns:
Type Description
SuperMap.Plot.SymbolText 解析对象标注数据。

setSymbolData(){SuperMap.Plot.SymbolText}

common/plot/SymbolText.js, line 91

设置对象标注数据。

Returns:
Type Description
SuperMap.Plot.SymbolText 设置对象标注数据。