L.supermap.plotting.lineRelation(libID, code, latlngs, options)
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
libID |
number |
标号的ID。 |
||||||||||||||||||||||||
code |
number |
标号的code。 |
||||||||||||||||||||||||
latlngs |
Array.<L.LatLng> |
标号位置点。保留参数 |
||||||||||||||||||||||||
options |
Object |
标号参数。
|
Extends
Members
-
codenumber
-
标号的code。
-
customobject
-
用来存储用户的自定义数据,只负责保存,不会对其做任何操作。
-
endAssociatedUuidstring
-
连接线的结束对象的唯一ID。
-
extendPropertyobject
-
标号的自定义属性。
-
libIDnumber
-
标号所属标号库的ID。
-
lineRelationTypeSuperMap.Plot.LineRelation
-
对象间连接线类型。
-
notestring
-
标号的备注。
-
startAssociatedUuidstring
-
连接线的开始对象的唯一ID。
-
stylestyle
-
标号的显示风格。
-
symbolNamestring
-
标号的名称。
-
symbolTypeSuperMap.Plot.SymbolType
-
标号的几何类型,可以根据该参数判断标号的具体类型。
-
uuidstring
-
标号的唯一标识符。
Methods
-
inherited addAvoidRegion(region)
leaflet/layer/PlottingObject.js, line 510 -
设置标号的避让区域
Name Type Description regionL.supermap.plotting.avoidRegion 避让区域。
-
inherited clone()
leaflet/layer/PlottingObject.js, line 378 -
拷贝标号。
-
destroy()
leaflet/layer/LineRelation.js, line 171 -
销毁几何图形。
-
inherited getArrowBodyType(){SuperMap.Plot.ArrowToolKit.ArrowBodyType}
leaflet/layer/AlgoSymbol.js, line 141 -
获取箭身类型。
Returns:
Type Description SuperMap.Plot.ArrowToolKit.ArrowBodyType 返回箭身类型。 -
inherited getArrowHeadType(){SuperMap.Plot.ArrowToolKit.ArrowHeadType}
leaflet/layer/AlgoSymbol.js, line 99 -
获取箭头类型。
Returns:
Type Description SuperMap.Plot.ArrowToolKit.ArrowHeadType 返回箭头类型。 -
inherited getArrowTailType(){SuperMap.Plot.ArrowToolKit.ArrowTailType}
leaflet/layer/AlgoSymbol.js, line 120 -
获取箭尾类型。
Returns:
Type Description SuperMap.Plot.ArrowToolKit.ArrowTailType 返回箭尾类型。 -
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 自定义属性列表。 -
getLineRelationType(){SuperMap.Plot.LineRelation}
leaflet/layer/LineRelation.js, line 53 -
获取连接线类型。
Returns:
Type Description SuperMap.Plot.LineRelation 返回连接线类型。 -
inherited getLocked()
leaflet/layer/PlottingObject.js, line 431 -
获取标号是否锁定。
-
inherited getRotate()
leaflet/layer/PlottingObject.js, line 467 -
获取标号旋转角度。
-
inherited getScaleByMap(){boolean}
leaflet/layer/AlgoSymbol.js, line 195 -
获取线面标号是否随图缩放。
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/AlgoSymbol.js, line 906 -
获取注记内容。
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 regionsArray.<L.supermap.plotting.avoidRegion> 避让区域。
-
inherited setArrowBodyType(arrowBodyType)
leaflet/layer/AlgoSymbol.js, line 150 -
设置箭身类型。
Name Type Description arrowBodyTypeSuperMap.Plot.ArrowToolKit.ArrowBodyType 箭身类型。
-
inherited setArrowHeadType(arrowHeadType)
leaflet/layer/AlgoSymbol.js, line 108 -
设置箭头类型。
Name Type Description arrowHeadTypeSuperMap.Plot.ArrowToolKit.ArrowHeadType 箭头类型。
-
inherited setArrowTailType(arrowTailType)
leaflet/layer/AlgoSymbol.js, line 129 -
设置箭尾类型。
Name Type Description arrowTailTypeSuperMap.Plot.ArrowToolKit.ArrowTailType 箭尾类型。
-
setEndFeature(endAssociatedUuid)
leaflet/layer/LineRelation.js, line 112 -
设置结束位置对象,如果传入对象为空,则将对应标号也设置为空。
Name Type Description endAssociatedUuidstring 尾点标号的uuid。
-
setFeatures(startAssociatedUuid, endAssociatedUuid)
leaflet/layer/LineRelation.js, line 145 -
设置起始对象,传入标号不能为空。
Name Type Description startAssociatedUuidstring 起点标号的uuid。
endAssociatedUuidstring 尾点标号的uuid。
-
setLineRelationType(lineRelationType)
leaflet/layer/LineRelation.js, line 39 -
设置连接线类型。
Name Type Description lineRelationTypeSuperMap.Plot.LineRelation 连接线类型。
-
inherited setLocked(locked)
leaflet/layer/PlottingObject.js, line 439 -
设置标号锁定。
Name Type Description lockedBoolean 标号锁定。
-
inherited setRotate(rotateValue)
leaflet/layer/AlgoSymbol.js, line 162 -
设置线面标号的旋转角度。
Name Type Description rotateValuenumber 线面标号的旋转角度。
-
inherited setScaleByMap(isScaleByMap)
leaflet/layer/AlgoSymbol.js, line 204 -
设置线面标号是否随图缩放。
Name Type Description isScaleByMapboolean 线面标号是否随图缩放。
-
setStartFeature(startAssociatedUuid)
leaflet/layer/LineRelation.js, line 79 -
设置起始位置对象,如果传入对象为空,则将对应标号也设置为空。
Name Type Description startAssociatedUuidstring 起点标号的uuid。
-
inherited setStyle(style)
leaflet/layer/PlottingObject.js, line 390 -
设置标号样式。
Name Type Description stylestyle 标号样式。
-
inherited setSubSymbol(code, npos, libID)
leaflet/layer/AlgoSymbol.js, line 223 -
设置线面标号的子标号。
Name Type Description codenumber 子标号code。
nposnumber 子标号在线面标号所处的索引位置。
libIDnumber 子标号的库ID。
-
inherited setSurroundLineType(surroundLineType)
leaflet/layer/AlgoSymbol.js, line 213 -
设置标号的衬线类型。
Name Type Description surroundLineTypenumber 标号的衬线类型,线面标号有四种类型:0无衬线,1内侧衬线,2外侧衬线,3双侧衬线。
-
inherited setTextContent(content)
leaflet/layer/PlottingObject.js, line 417 -
设置注记内容。
Name Type Description contentstring 注记内容。
-
inherited toGeoJsonStr(){string}
leaflet/layer/PlottingObject.js, line 1271 -
根据标绘对象返回 GeoJson 串。
Returns:
Type Description string 需要转换 GeoJson 串的标绘对象