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.LineRelationType
-
对象间连接线类型。
-
notestring
-
标号的备注。
-
roundBoxboolean
-
标注框显示圆角边框。
-
startAssociatedUuidstring
-
连接线的开始对象的唯一ID。
-
stylestyle
-
标号的显示风格。
-
symbolNamestring
-
标号的名称。
-
symbolTypeSuperMap.Plot.SymbolType
-
标号的几何类型,可以根据该参数判断标号的具体类型。
-
textBoxTypeSuperMap.Plot.TextBoxType
-
标注框边框类型。
-
uuidstring
-
标号的唯一标识符。
Methods
-
inherited addAvoidRegion(region)
leaflet/layer/PlottingObject.js, line 600 -
设置标号的避让区域
Name Type Description region
L.supermap.plotting.avoidRegion 避让区域。
-
inherited addLatLng(latlng)
leaflet/layer/GraphicObject.js, line 80 -
增加标号的位置点。
Name Type Description latlng
L.LatLng 标号的位置点。
-
inherited canPolylineConnectLocationPoint(){boolean}
leaflet/layer/AlgoSymbol.js, line 953 -
获取控制点个数大于3时,控制点间曲线是否可以设置折线连接。
Returns:
Type Description boolean 返回是否可以设置折线连接。 -
inherited clone()
leaflet/layer/PlottingObject.js, line 418 -
拷贝标号。
-
destroy()
leaflet/layer/LineRelation.js, line 171 -
销毁几何图形。
-
inherited getArrowBodyType(){SuperMap.Plot.ArrowBodyType}
leaflet/layer/AlgoSymbol.js, line 219 -
获取箭身类型。
Returns:
Type Description SuperMap.Plot.ArrowBodyType 返回箭身类型。 -
inherited getArrowHeadType(){SuperMap.Plot.ArrowHeadType}
leaflet/layer/AlgoSymbol.js, line 177 -
获取箭头类型。
Returns:
Type Description SuperMap.Plot.ArrowHeadType 返回箭头类型。 -
inherited getArrowTailType(){SuperMap.Plot.ArrowTailType}
leaflet/layer/AlgoSymbol.js, line 198 -
获取箭尾类型。
Returns:
Type Description SuperMap.Plot.ArrowTailType 返回箭尾类型。 -
inherited getBounds(){L.LatLngBounds()}
leaflet/layer/PlottingObject.js, line 401 -
获取标号包围盒。
Returns:
Type Description L.LatLngBounds() 返回标号包围盒。 -
inherited getEndArrowType(){SuperMap.Plot.ArrowLineType}
leaflet/layer/AlgoSymbol.js, line 1005 -
获取基本标号箭头线结束箭头类型。
Returns:
Type Description SuperMap.Plot.ArrowLineType 返回结束箭头类型。 -
inherited getExtendProperty(){SuperMap.Plot.ExtendProperty}
leaflet/layer/PlottingObject.js, line 591 -
获取自定义属性列表。
Returns:
Type Description SuperMap.Plot.ExtendProperty 自定义属性列表。 -
inherited getLatLngs(){Array.<L.LatLng>}
leaflet/layer/GraphicObject.js, line 70 -
获取标号位置点。
Returns:
Type Description Array.<L.LatLng> 标号的位置点。 -
getLineRelationType(){SuperMap.Plot.LineRelationType}
leaflet/layer/LineRelation.js, line 53 -
获取连接线类型。
Returns:
Type Description SuperMap.Plot.LineRelationType 返回连接线类型。 -
inherited getLocationCircle(){boolean}
leaflet/layer/AlgoSymbol.js, line 944 -
获取是否显示定位圆。
Returns:
Type Description boolean 返回是否显示定位圆。 -
inherited getLocked(){boolean}
leaflet/layer/PlottingObject.js, line 481 -
获取标号是否锁定。
Returns:
Type Description boolean 返回标号是否锁定。 -
inherited getPolylineConnectLocationPoint(){boolean}
leaflet/layer/AlgoSymbol.js, line 961 -
获取控制点个数大于3时,控制点间曲线线是否是折线连接。
Returns:
Type Description boolean 返回是否是折线连接。 -
inherited getRotate(){number}
leaflet/layer/PlottingObject.js, line 547 -
获取标号旋转角度。
Returns:
Type Description number 返回标号的旋转角度。 -
inherited getRoundBox(){boolean}
leaflet/layer/AlgoSymbol.js, line 920 -
获取是否显示标注框圆角边框。
Returns:
Type Description boolean 返回是否显示标注圆角边框。 -
inherited getScale(){float}
leaflet/layer/PlottingObject.js, line 509 -
获取标号缩放级别。
Returns:
Type Description float 返回标号缩放级别。 -
inherited getScaleByMap(){boolean}
leaflet/layer/AlgoSymbol.js, line 268 -
获取线面标号是否随图缩放。
Returns:
Type Description boolean 返回线面标号是否随图缩放。 -
inherited getScaleValues(){Array.<float>}
leaflet/layer/PlottingObject.js, line 518 -
获取标号的比例点。
Returns:
Type Description Array.<float> 返回标号的比例点。 -
inherited getStartArrowType(){SuperMap.Plot.ArrowLineType}
leaflet/layer/AlgoSymbol.js, line 983 -
获取基本标号箭头线起始箭头类型。
Returns:
Type Description SuperMap.Plot.ArrowLineType 返回起始箭头类型。 -
inherited getSubSymbols(){Object}
leaflet/layer/PlottingObject.js, line 556 -
获取线面标号的子标号。
Returns:
Type Description Object 线面标号的子标号。 -
inherited getSurroundLineType(){number}
leaflet/layer/GraphicObject.js, line 110 -
获取标号的衬线类型。
Returns:
Type Description number 标号的衬线类型。 -
inherited getTextBoxType()
leaflet/layer/AlgoSymbol.js, line 897 -
获取标注边框类型,支持带角矩形边框和线型底边两种类型。
-
inherited getTextContent(){String}
leaflet/layer/AlgoSymbol.js, line 168 -
获取注记内容。
Returns:
Type Description String 返回注记内容。 -
inherited getTextPosition(){Object}
leaflet/layer/AlgoSymbol.js, line 1041 -
获取多边形区域文字位置。
Returns:
Type Description Object 返回多边形区域文字位置。 -
inherited redraw()
leaflet/layer/PlottingObject.js, line 661 -
重绘。
-
inherited removeAvoidRegions(regions)
leaflet/layer/PlottingObject.js, line 613 -
移除标号的避让区域。
Name Type Description regions
Array.<L.supermap.plotting.avoidRegion> 避让区域。
-
inherited setArrowBodyType(arrowBodyType)
leaflet/layer/AlgoSymbol.js, line 228 -
设置箭身类型。
Name Type Description arrowBodyType
SuperMap.Plot.ArrowBodyType 箭身类型。
-
inherited setArrowHeadType(arrowHeadType)
leaflet/layer/AlgoSymbol.js, line 186 -
设置箭头类型。
Name Type Description arrowHeadType
SuperMap.Plot.ArrowHeadType 箭头类型。
-
inherited setArrowTailType(arrowTailType)
leaflet/layer/AlgoSymbol.js, line 207 -
设置箭尾类型。
Name Type Description arrowTailType
SuperMap.Plot.ArrowTailType 箭尾类型。
-
inherited setEndArrowType(arrowTypeEnd)
leaflet/layer/AlgoSymbol.js, line 1014 -
设置基本标号箭头线结束箭头类型。
Name Type Description arrowTypeEnd
SuperMap.Plot.ArrowLineType 基本标号箭头线结束箭头类型。
-
setEndFeature(endAssociatedUuid)
leaflet/layer/LineRelation.js, line 112 -
设置结束位置对象,如果传入对象为空,则将对应标号也设置为空。
Name Type Description endAssociatedUuid
string 尾点标号的uuid。
-
setFeatures(startAssociatedUuid, endAssociatedUuid)
leaflet/layer/LineRelation.js, line 145 -
设置起始对象,传入标号不能为空。
Name Type Description startAssociatedUuid
string 起点标号的uuid。
endAssociatedUuid
string 尾点标号的uuid。
-
inherited setLatLngs(latlngs)
leaflet/layer/GraphicObject.js, line 59 -
设置标号位置点。
Name Type Description latlngs
Array.<L.LatLng> 标号的位置点。
-
setLineRelationType(lineRelationType)
leaflet/layer/LineRelation.js, line 39 -
设置连接线类型。
Name Type Description lineRelationType
SuperMap.Plot.LineRelationType 连接线类型。
-
inherited setLocationCircle(locationCircle)
leaflet/layer/AlgoSymbol.js, line 929 -
设置是否显示注记指示框定位圆。
Name Type Description locationCircle
boolean 是否显示定位圆。
-
inherited setLocked(locked)
leaflet/layer/PlottingObject.js, line 490 -
设置标号锁定。
Name Type Description locked
boolean 标号锁定。
-
inherited setPolylineConnectLocationPoint(polylineConnectLocationPoint)
leaflet/layer/AlgoSymbol.js, line 970 -
获取控制点个数大于3时,设置控制点间是折线或曲线。
Name Type Description polylineConnectLocationPoint
boolean 设置控制点间是折线或曲线。
-
inherited setRotate(rotateValue)
leaflet/layer/AlgoSymbol.js, line 240 -
设置线面标号的旋转角度。
Name Type Description rotateValue
number 线面标号的旋转角度。
-
inherited setRoundBox(roundBox)
leaflet/layer/AlgoSymbol.js, line 905 -
设置是否显示标注框圆角边框。
Name Type Description roundBox
boolean 是否显示圆角边框。
-
inherited setScaleByMap(isScaleByMap)
leaflet/layer/AlgoSymbol.js, line 277 -
设置线面标号是否随图缩放。
Name Type Description isScaleByMap
boolean 线面标号是否随图缩放。
-
inherited setScaleValues(scaleValues)
leaflet/layer/PlottingObject.js, line 527 -
设置标号的比例点。
Name Type Description scaleValues
Array.<float> 标号的比例点。
-
inherited setStartArrowType(arrowTypeStart)
leaflet/layer/AlgoSymbol.js, line 992 -
设置基本标号箭头线起始箭头类型。
Name Type Description arrowTypeStart
SuperMap.Plot.ArrowLineType 基本标号箭头线起始箭头类型。
-
setStartFeature(startAssociatedUuid)
leaflet/layer/LineRelation.js, line 79 -
设置起始位置对象,如果传入对象为空,则将对应标号也设置为空。
Name Type Description startAssociatedUuid
string 起点标号的uuid。
-
inherited setStyle(style)
leaflet/layer/PlottingObject.js, line 433 -
设置标号样式。
Name Type Description style
style 标号样式。
-
inherited setSubSymbol(code, npos, libID)
leaflet/layer/AlgoSymbol.js, line 296 -
设置线面标号的子标号。
Name Type Description code
number 子标号code。
npos
number 子标号在线面标号所处的索引位置。
libID
number 子标号的库ID。
-
inherited setSurroundLineType(surroundLineType)
leaflet/layer/AlgoSymbol.js, line 286 -
设置标号的衬线类型。
Name Type Description surroundLineType
number 标号的衬线类型,线面标号有四种类型:0无衬线,1内侧衬线,2外侧衬线,3双侧衬线。
-
inherited setTextBoxType(textBoxType)
leaflet/layer/AlgoSymbol.js, line 884 -
设置标注边框类型,支持带角矩形边框和线型底边两种类型。
Name Type Description textBoxType
SuperMap.Plot.TextBoxType 标注框边框类型。
-
inherited setTextContent(content)
leaflet/layer/PlottingObject.js, line 467 -
设置注记内容。
Name Type Description content
string 注记内容。
-
inherited setTextPosition(position)
leaflet/layer/AlgoSymbol.js, line 1052 -
设置多边形区域文字位置。
Name Type Description position
Object 多边形区域文字位置。
-
inherited toGeoJsonStr(){string}
leaflet/layer/PlottingObject.js, line 1386 -
根据标绘对象返回GeoJson串。
Returns:
Type Description string 返回GeoJson串。