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 |
对象标注参数。
|
Members
-
borderboolean
-
文字内容带边框显示。显示边框且有位置偏移,则标牌和标号间用直线连接。
-
lineStyleLineStyle
-
文字和边框的连接线样式。
-
offsetXfloat
-
文字内容在X方向的偏移量,单位是像素。
-
offsetYfloat
-
文字内容在Y方向的偏移量,单位是像素。
-
paddingXfloat
-
边框和文字的横向距离,单位是像素。
-
paddingYfloat
-
边框和文字的纵向距离,单位是像素。
-
showRelationLineboolean
-
标牌与标号之间的连接线
-
styleObject
-
边框和文字的样式。
-
textContentstring
-
文字内容。
-
textPositionSuperMap.Plot.AnnoPosition
-
文字相对标号的位置。
Methods
-
clone(){SuperMap.Plot.SymbolText}
common/plot/SymbolText.js, line 162 -
克隆对象标注对象。
Returns:
Type Description SuperMap.Plot.SymbolText 克隆后的对象标注对象。 -
destroy()
common/plot/SymbolText.js, line 144 -
销毁图形对象数据。
-
parseSymbolData(){SuperMap.Plot.SymbolText}
common/plot/SymbolText.js, line 228 -
解析对象标注数据。
Returns:
Type Description SuperMap.Plot.SymbolText 解析对象标注数据。 -
setSymbolData(){SuperMap.Plot.SymbolText}
common/plot/SymbolText.js, line 188 -
设置对象标注数据。
Returns:
Type Description SuperMap.Plot.SymbolText 设置对象标注数据。