Class: PlottingObject

L.supermap.plotting.PlottingObject

标绘几何对象基类。

L.supermap.plotting.PlottingObject()

leaflet/layer/PlottingObject.js, line 6

Members

codenumber

标号的code。

customobject

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

extendPropertyobject

标号的自定义属性。

libIDnumber

标号所属标号库的ID。

notestring

标号的备注。

stylestyle

标号的显示风格。

symbolNamestring

标号的名称。

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

textDisplayBoolean

注记是否显示。

uuidstring

标号的唯一标识符。

Methods

addAvoidRegion(region)

leaflet/layer/PlottingObject.js, line 619

设置标号的避让区域。

Name Type Description
region L.supermap.plotting.avoidRegion

避让区域。

clone()

leaflet/layer/PlottingObject.js, line 436

拷贝标号。

destroy()

leaflet/layer/PlottingObject.js, line 1377

销毁对象。

getBounds(){L.LatLngBounds()}

leaflet/layer/PlottingObject.js, line 419

获取标号包围盒。

Returns:
Type Description
L.LatLngBounds() 返回标号包围盒。

getExtendProperty(){SuperMap.Plot.ExtendProperty}

leaflet/layer/PlottingObject.js, line 610

获取自定义属性列表。

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

getLocked(){boolean}

leaflet/layer/PlottingObject.js, line 500

获取标号是否锁定。

Returns:
Type Description
boolean 返回标号是否锁定。

getRotate(){number}

leaflet/layer/PlottingObject.js, line 566

获取标号旋转角度。

Returns:
Type Description
number 返回标号的旋转角度。

getScale(){float}

leaflet/layer/PlottingObject.js, line 528

获取标号缩放级别。

Returns:
Type Description
float 返回标号缩放级别。

getScaleValues(){Array.<float>}

leaflet/layer/PlottingObject.js, line 537

获取标号的比例点。

Returns:
Type Description
Array.<float> 返回标号的比例点。

getSubSymbols(){Object}

leaflet/layer/PlottingObject.js, line 575

获取线面标号的子标号。

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

getTextContent(){string}

leaflet/layer/PlottingObject.js, line 601

获取标号的注记内容。

Returns:
Type Description
string 注记内容。

getTextPosition(){number}

leaflet/layer/PlottingObject.js, line 592

获取点标号注记位置。

Returns:
Type Description
number 返回点标号注记位置。

redraw()

leaflet/layer/PlottingObject.js, line 680

重绘。

removeAvoidRegions(regions)

leaflet/layer/PlottingObject.js, line 632

移除标号的避让区域。

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

避让区域。

setLocked(locked)

leaflet/layer/PlottingObject.js, line 509

设置标号锁定。

Name Type Description
locked boolean

标号锁定。

setScaleValues(scaleValues)

leaflet/layer/PlottingObject.js, line 546

设置标号的比例点。

Name Type Description
scaleValues Array.<float>

标号的比例点。

setStyle(style)

leaflet/layer/PlottingObject.js, line 451

设置标号样式。

Name Type Description
style style

标号样式。

setTextContent(content)

leaflet/layer/PlottingObject.js, line 486

设置注记内容。

Name Type Description
content string

注记内容。

toGeoJsonStr(){string}

leaflet/layer/PlottingObject.js, line 1415

根据标绘对象返回GeoJson串。

Returns:
Type Description
string 返回GeoJson串。