Class: symbolText1

L.supermap.plotting.symbolText1

对象标注(带指示线)。

L.supermap.plotting.symbolText1(libID, code, latlngs, options)

leaflet/layer/SymbolText1.js, line 2
Name Type Description
libID number

标号的ID。

code number

标号的code。

latlngs Array.<L.LatLng>

标号位置点。

options Object

标号参数。

Name Type Default Description
uuid string 可选

标号的唯一标识符。

associatedUuid string 可选

标号的关联对象唯一标识符。

textContent string 可选

标号的注记内容。

space number 10 可选

文字和基准线的距离。单位是像素

style style 可选

标号的显示风格。

Extends

Members

codenumber

标号的code。

customobject

用来存储用户的自定义数据,只负责保存,不会对其做任何操作。

extendPropertyobject

标号的自定义属性。

libIDnumber

标号所属标号库的ID。

notestring

标号的备注。

stylestyle

标号的显示风格。

symbolNamestring

标号的名称。

标号的几何类型,可以根据该参数判断标号的具体类型。

uuidstring

标号的唯一标识符。

Methods

inherited addAvoidRegion(region)

leaflet/layer/PlottingObject.js, line 510

设置标号的避让区域

Name Type Description
region L.supermap.plotting.avoidRegion

避让区域。

inherited clone()

leaflet/layer/PlottingObject.js, line 378

拷贝标号。

destroy()

leaflet/layer/SymbolText1.js, line 63

销毁几何图形。

inherited getBounds()

leaflet/layer/PlottingObject.js, line 364

获取标号包围盒。

inherited getExtendProperty(){SuperMap.Plot.ExtendProperty}

leaflet/layer/PlottingObject.js, line 501

获取自定义属性列表。

Returns:
Type Description
SuperMap.Plot.ExtendProperty 自定义属性列表。

inherited getLocked()

leaflet/layer/PlottingObject.js, line 431

获取标号是否锁定。

inherited getRotate()

leaflet/layer/PlottingObject.js, line 467

获取标号旋转角度。

inherited getScaleByMap(){boolean}

leaflet/layer/GraphicObject.js, line 81

获取点标号是否随图缩放。

Returns:
Type Description
boolean 返回点标号是否随图缩放。

inherited getSubSymbols(){Object}

leaflet/layer/PlottingObject.js, line 475

获取线面标号的子标号。

Returns:
Type Description
Object 线面标号的子标号。

inherited getSurroundLineType(){number}

leaflet/layer/GraphicObject.js, line 90

获取标号的衬线类型。

Returns:
Type Description
number 标号的衬线类型。

inherited getTextContent(){string}

leaflet/layer/PlottingObject.js, line 492

获取标号的注记内容。

Returns:
Type Description
string 注记内容。

inherited getTextPosition()

leaflet/layer/PlottingObject.js, line 484

设置点标号注记位置。

inherited redraw()

leaflet/layer/PlottingObject.js, line 560

重绘。

inherited removeAvoidRegions(regions)

leaflet/layer/PlottingObject.js, line 524

移除标号的避让区域。

Name Type Description
regions Array.<L.supermap.plotting.avoidRegion>

避让区域。

inherited setLocked(locked)

leaflet/layer/PlottingObject.js, line 439

设置标号锁定。

Name Type Description
locked Boolean

标号锁定。

inherited setScaleByMap(isScaleByMap)

leaflet/layer/GraphicObject.js, line 72

设置点标号是否随图缩放。

Name Type Description
isScaleByMap boolean

点标号是否随图缩放。

inherited setStyle(style)

leaflet/layer/PlottingObject.js, line 390

设置标号样式。

Name Type Description
style style

标号样式。

inherited setSurroundLineType(surroundLineType)

leaflet/layer/GraphicObject.js, line 100

设置标号的衬线类型。

Name Type Description
surroundLineType number

标号的衬线类型,线面标号有四种类型:0无衬线,1内侧衬线,2外侧衬线,3双侧衬线。

inherited setTextContent(content)

leaflet/layer/PlottingObject.js, line 417

设置注记内容。

Name Type Description
content string

注记内容。

inherited toGeoJsonStr(){string}

leaflet/layer/PlottingObject.js, line 1271

根据标绘对象返回 GeoJson 串。

Returns:
Type Description
string 需要转换 GeoJson 串的标绘对象