Class: RouteNode

RouteNode

航线节点信息。

new RouteNode(options)

Usage
// 浏览器
<script type="text/javascript" src="../../web/libs/plotting/leaflet/11.3.0/iclient-plot-leaflet-es6.min.js"></script>
<script>
  new SuperMap.Plot.RouteNode(options);
  
  
</script>

// ES6 Import
import { RouteNode } from '../../public/iclient-plot/iclient-plot-leaflet-es6.min.js';

new RouteNode(options);

common/plot/RouteNode.js, line 11
Name Type Description
options Object

航线节点参数。

Name Type Description
id number 可选

航线节点id。

x number 可选

航线节点经度。

y number 可选

航线节点纬度。

z number 可选

航线节点高度。

type number 可选

航线节点类型。

name string 可选

航线节点名称。

rotate number 可选

待机点外部包围圆的旋转角度。

towardNodes TowardNode 可选

指向节点。

style Object 可选

航线点样式。

Members

idnumber

航线节点的id

namestring

航线节点名称

styleObject

航线点样式

towardNodesTowardNode

指向节点

typenumber

航线节点类型

xnumber

航线节点经度

ynumber

航线节点纬度

znumber

航线节点高度

Methods

inherited addLatLng(latlng)

leaflet/layer/GraphicObject.js, line 170

增加标号的位置点。

Name Type Description
latlng L.LatLng

标号的位置点。

inherited bilnk(options)

leaflet/layer/GraphicObject.js, line 241

标号闪烁,默认闪烁5次,闪烁5秒。

Name Type Description
options object

可以不传。

Name Type Description
blinkNumber number

闪烁次数

duration number

闪烁时长

leaflet/layer/GraphicObject.js, line 280

取消标号闪烁

inherited canSetInnerText(){boolean}

leaflet/layer/GraphicObject.js, line 329

线面标号是否可以设置中间横线注记。

Returns:
Type Description
boolean 返回是否可以设置中间横线注记。

clone(){RouteNode}

common/plot/RouteNode.js, line 115

克隆航线点对象。

Returns:
Type Description
RouteNode 克隆后的航线点对象。

destroy()

common/plot/RouteNode.js, line 93

销毁航线点数据。

inherited getLatLngs(){Array.<L.LatLng>}

leaflet/layer/GraphicObject.js, line 160

获取标号位置点。

Returns:
Type Description
Array.<L.LatLng> 标号的位置点。

inherited getPolylineCellBufferGradientParameter(){Object}

leaflet/layer/GraphicObject.js, line 125

获取折线图元缓冲渐变参数,详细参数见:setPolylineCellBufferGradientParameter。

Returns:
Type Description
Object 缓冲渐变参数。

inherited getScaleByMap(){boolean}

leaflet/layer/GraphicObject.js, line 192

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

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

inherited getSurroundLineType(){number}

leaflet/layer/GraphicObject.js, line 201

获取标号的衬线类型。

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

inherited isShowPolylineCellBufferGradient(){boolean}

leaflet/layer/GraphicObject.js, line 86

获取折线图元是否显示缓冲渐变。

Returns:
Type Description
boolean 否显示缓冲渐变。

parseSymbolData(){RouteNode}

common/plot/RouteNode.js, line 139

获取航线节点数据。

Returns:
Type Description
RouteNode 航线点对象。

inherited setLatLngs(latlngs)

leaflet/layer/GraphicObject.js, line 145

设置标号位置点。

Name Type Description
latlngs Array.<L.LatLng>

标号的位置点。

inherited setPolylineCellBufferGradientParameter(parameter)

leaflet/layer/GraphicObject.js, line 95

设置折线图元缓冲渐变参数。

Name Type Description
parameter Object

折线图元缓冲渐变参数。

Name Type Description
startColor String

渐变开始颜色,默认值为:"rgba(255, 0, 0, 1)"

endColor String

渐变结束颜色,默认值为:"rgba(255, 0, 0, 0)"

bufferWidth Number

渐变宽度,默认值为:10,单位:毫米,最大生效值:30

isBufferLeft boolean

是否为左侧渐变,默认值为true

inherited setScaleByMap(isScaleByMap)

leaflet/layer/GraphicObject.js, line 182

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

Name Type Description
isScaleByMap boolean

点标号是否随图缩放。

inherited setShowPolylineBufferGradient(showPolylineCellBufferGradient)

leaflet/layer/GraphicObject.js, line 74

设置折线图元是否显示缓冲渐变。

Name Type Description
showPolylineCellBufferGradient boolean

是否显示缓冲渐变。

inherited setSurroundLineType(surroundLineType)

leaflet/layer/GraphicObject.js, line 211

设置标号的衬线类型。

Name Type Description
surroundLineType number

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

setSymbolData(){RouteNode}

common/plot/RouteNode.js, line 167

设置航线节点数据。

Returns:
Type Description
RouteNode 航线点对象。

RouteNode

航线节点对象。

new RouteNode(libID, code, latlngs, options)

Usage
// 浏览器
<script type="text/javascript" src="../../web/libs/plotting/leaflet/11.3.0/iclient-plot-leaflet-es6.min.js"></script>
<script>
  new L.supermap.plotting.RouteNode(libID, code, latlngs, options);
  
  
</script>

// ES6 Import
import { RouteNode } from '../../public/iclient-plot/iclient-plot-leaflet-es6.min.js';

new RouteNode(libID, code, latlngs, options);

leaflet/layer/GeoRouteNode.js, line 4
Name Type Description
libID number

标号的ID

code number

标号的code

latlngs Array.<L.LatLng>

标号位置点。

options Object

标号参数。

Name Type Description
symbolType SymbolType 可选

对象类型,ROUTENODE。

Extends

Members

idnumber

航线节点的id

namestring

航线节点名称

styleObject

航线点样式

towardNodesTowardNode

指向节点

typenumber

航线节点类型

xnumber

航线节点经度

ynumber

航线节点纬度

znumber

航线节点高度

Methods

inherited addLatLng(latlng)

leaflet/layer/GraphicObject.js, line 170

增加标号的位置点。

Name Type Description
latlng L.LatLng

标号的位置点。

inherited bilnk(options)

leaflet/layer/GraphicObject.js, line 241

标号闪烁,默认闪烁5次,闪烁5秒。

Name Type Description
options object

可以不传。

Name Type Description
blinkNumber number

闪烁次数

duration number

闪烁时长

leaflet/layer/GraphicObject.js, line 280

取消标号闪烁

inherited canSetInnerText(){boolean}

leaflet/layer/GraphicObject.js, line 329

线面标号是否可以设置中间横线注记。

Returns:
Type Description
boolean 返回是否可以设置中间横线注记。

clone(){RouteNode}

common/plot/RouteNode.js, line 115

克隆航线点对象。

Returns:
Type Description
RouteNode 克隆后的航线点对象。

destroy()

common/plot/RouteNode.js, line 93

销毁航线点数据。

inherited getLatLngs(){Array.<L.LatLng>}

leaflet/layer/GraphicObject.js, line 160

获取标号位置点。

Returns:
Type Description
Array.<L.LatLng> 标号的位置点。

inherited getPolylineCellBufferGradientParameter(){Object}

leaflet/layer/GraphicObject.js, line 125

获取折线图元缓冲渐变参数,详细参数见:setPolylineCellBufferGradientParameter。

Returns:
Type Description
Object 缓冲渐变参数。

inherited getScaleByMap(){boolean}

leaflet/layer/GraphicObject.js, line 192

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

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

inherited getSurroundLineType(){number}

leaflet/layer/GraphicObject.js, line 201

获取标号的衬线类型。

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

inherited isShowPolylineCellBufferGradient(){boolean}

leaflet/layer/GraphicObject.js, line 86

获取折线图元是否显示缓冲渐变。

Returns:
Type Description
boolean 否显示缓冲渐变。

parseSymbolData(){RouteNode}

common/plot/RouteNode.js, line 139

获取航线节点数据。

Returns:
Type Description
RouteNode 航线点对象。

inherited setLatLngs(latlngs)

leaflet/layer/GraphicObject.js, line 145

设置标号位置点。

Name Type Description
latlngs Array.<L.LatLng>

标号的位置点。

inherited setPolylineCellBufferGradientParameter(parameter)

leaflet/layer/GraphicObject.js, line 95

设置折线图元缓冲渐变参数。

Name Type Description
parameter Object

折线图元缓冲渐变参数。

Name Type Description
startColor String

渐变开始颜色,默认值为:"rgba(255, 0, 0, 1)"

endColor String

渐变结束颜色,默认值为:"rgba(255, 0, 0, 0)"

bufferWidth Number

渐变宽度,默认值为:10,单位:毫米,最大生效值:30

isBufferLeft boolean

是否为左侧渐变,默认值为true

inherited setScaleByMap(isScaleByMap)

leaflet/layer/GraphicObject.js, line 182

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

Name Type Description
isScaleByMap boolean

点标号是否随图缩放。

inherited setShowPolylineBufferGradient(showPolylineCellBufferGradient)

leaflet/layer/GraphicObject.js, line 74

设置折线图元是否显示缓冲渐变。

Name Type Description
showPolylineCellBufferGradient boolean

是否显示缓冲渐变。

inherited setSurroundLineType(surroundLineType)

leaflet/layer/GraphicObject.js, line 211

设置标号的衬线类型。

Name Type Description
surroundLineType number

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

setSymbolData(){RouteNode}

common/plot/RouteNode.js, line 167

设置航线节点数据。

Returns:
Type Description
RouteNode 航线点对象。