Namespace: PlottingObject

PlottingObject

标绘几何对象基类。

Members

bubbleHeightstring

多媒体气泡的高。

bubbleWidthstring

多媒体气泡的宽。

codenumber

标号的code。

customobject

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

descriptionstring

标号的描述信息。

extendPropertyobject

标号的自定义属性。

libIDnumber

标号所属标号库的ID。

mediaListstring

标号的多媒体信息。

notestring

标号的备注。

stylestyle

标号的显示风格。

symbolNamestring

标号的名称。

symbolTypeSymbolType

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

textDisplayBoolean

注记是否显示。

uuidstring

标号的唯一标识符。

Methods

addAvoidRegion(region)

leaflet/layer/PlottingObject.js, line 1059

设置标号的避让区域

Name Type Description
region AvoidRegion

避让区域。

addSymbolAnnotations(symbolAnnotations)

leaflet/layer/PlottingObject.js, line 2109

向注记数组添加注记

Name Type Description
symbolAnnotations Array.<SymbolAnnotation>

注记对象数组

clearMediaList()

leaflet/layer/PlottingObject.js, line 1042

清空标号的多媒体信息列表。

clearSymbolAnnotations()

leaflet/layer/PlottingObject.js, line 2138

清空注记数组

clone()

leaflet/layer/PlottingObject.js, line 584

拷贝标号。

destroy()

leaflet/layer/PlottingObject.js, line 1981

销毁对象。

getBounds(){L.LatLngBounds}

leaflet/layer/PlottingObject.js, line 566

获取标号包围盒。

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

getBubbleHeight(){number}

leaflet/layer/PlottingObject.js, line 972

获取标号多媒体信息框高度。

Returns:
Type Description
number 返回多媒体信息框高度。

getBubbleWidth(){string}

leaflet/layer/PlottingObject.js, line 990

获取标号多媒体信息框宽度。

Returns:
Type Description
string 获取标号多媒体信息框宽度。

getDescription(){string}

leaflet/layer/PlottingObject.js, line 1008

获取标号多媒体描述信息。

Returns:
Type Description
string 获取标号多媒体描述信息。

getExtendProperty(){ExtendProperty}

leaflet/layer/PlottingObject.js, line 1050

获取自定义属性列表。

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

getLocked(){boolean}

leaflet/layer/PlottingObject.js, line 840

获取标号是否锁定。

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

getMediaList(){string}

leaflet/layer/PlottingObject.js, line 1025

获取标号多媒体信息。

Returns:
Type Description
string 获取标号多媒体信息。

getRotate(){number}

leaflet/layer/PlottingObject.js, line 907

获取标号旋转角度。

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

getScale(){number}

leaflet/layer/PlottingObject.js, line 869

获取标号缩放级别。

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

getScaleValues(){Array.<number>}

leaflet/layer/PlottingObject.js, line 878

获取标号的比例点。

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

getSubSymbols(){Object}

leaflet/layer/PlottingObject.js, line 944

获取线面标号的子标号。

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

getSymbolAnnotations(){Array.<SymbolAnnotation>}

leaflet/layer/PlottingObject.js, line 2061

获取注记数组。

Returns:
Type Description
Array.<SymbolAnnotation> 注记数组。

getSymbolAnnotations(index){SymbolAnnotation}

leaflet/layer/PlottingObject.js, line 2069

获取指定注记。

Name Type Description
index Number

注记的索引

Returns:
Type Description
SymbolAnnotation 注记数组。

getTextContent(){string}

leaflet/layer/PlottingObject.js, line 962

获取标号的注记内容。

Returns:
Type Description
string 注记内容。

getTextPosition(){number}

leaflet/layer/PlottingObject.js, line 953

获取点标号注记位置。

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

redraw()

leaflet/layer/PlottingObject.js, line 1127

重绘。

removeAvoidRegions(regions)

leaflet/layer/PlottingObject.js, line 1072

移除标号的避让区域。

Name Type Description
regions Array.<AvoidRegion>

避让区域。

removeSymbolAnnotation(index)

leaflet/layer/PlottingObject.js, line 2126

删除指定注记

Name Type Description
index Number

修改注记的索引

setBubbleHeight(height)

leaflet/layer/PlottingObject.js, line 981

设置多媒体框的高度。

Name Type Description
height number

多媒体框的高度。

setBubbleWidth(bubblewidth)

leaflet/layer/PlottingObject.js, line 999

设置多媒体框的宽度。

Name Type Description
bubblewidth number

多媒体框的宽度。

setDescription(description-多媒体描述信息。)

leaflet/layer/PlottingObject.js, line 1016

设置标号的多媒体描述信息。

Name Type Description
description-多媒体描述信息。 string

setLocked(locked)

leaflet/layer/PlottingObject.js, line 849

设置标号锁定。

Name Type Description
locked boolean

标号锁定。

setMediaList(medialist)

leaflet/layer/PlottingObject.js, line 1033

设置标号的多媒体信息列表。

Name Type Description
medialist Array.<string>

多媒体信息列表。

setScaleValues(scaleValues)

leaflet/layer/PlottingObject.js, line 887

设置标号的比例点。

Name Type Description
scaleValues Array.<number>

标号的比例点。

setStyle(style)

leaflet/layer/PlottingObject.js, line 602

设置标号样式。

Name Type Description
style style

标号样式。

setSymbolAnnotation(index, symbolAnnotation)

leaflet/layer/PlottingObject.js, line 2097

修改指定注记。

Name Type Description
index Number

修改注记的索引

symbolAnnotation SymbolAnnotation

注记对象

setSymbolAnnotations(symbolAnnotations)

leaflet/layer/PlottingObject.js, line 2081

设置注记数组。

Name Type Description
symbolAnnotations Array.<SymbolAnnotation>

注记数组

setTextContent(content)

leaflet/layer/PlottingObject.js, line 654

设置注记内容。

Name Type Description
content string

注记内容。

toGeoJsonStr(){string}

leaflet/layer/PlottingObject.js, line 2052

根据标绘对象返回GeoJson串。

Returns:
Type Description
string 返回GeoJson串。

updateByGeoJson(geoJson)

leaflet/layer/PlottingObject.js, line 2019

根据 GeoJson 串更新标绘对象。

Name Type Description
geoJson string

更新标绘对象使用的GeoJson数据。