航线对象。
| SuperMap. |
航线对象。 |
| Properties | |
| arrRoutePts | {Array(Array(SuperMap.Geometry.Point))} 航线路径点数组 |
| lineStyle | {Object} 航线样式 |
| maxEditPts | {Integer} 标号最大编辑点个数 |
| minEditPts | {Integer} 标号最小编辑点个数 |
| nextRouteNodeType | {Array(SuperMap.Plot.RouteNodeType)} 下一个航线点类型 |
| routeNodes | {Array(SuperMap.Plot.RouteNodeType)} 航线点类型 |
| Constructor | |
| SuperMap. |
创建一个航线对象。 |
| Functions | |
| addRouteNode | 添加航线节点。 |
| applyLineStyle | 修改航线样式 |
| applyNodeStyle | 修改航线节点样式 |
| applyTextStyle | 修改航线线上文字或标牌文字的样式 |
| blinkRoute | 航线闪烁,闪烁完成后显示航线本身的颜色 |
| calculateBounds | 通过遍历数组重新计算边界,在遍历每一子项中时调用 extend 方法。 |
| deleteRouteNode | 删除航线节点。 |
| destroy | 销毁几何图形。 |
| finishRoute | 销毁几何图形。 |
| getNodeFeature | 获取航线节点 |
| highlight | 高亮航线 |
| initRoute | 销毁几何图形。 |
| insertRouteNode | 插入航线节点。 |
| setNextRouteNodeType | 设置下一个航线节点类型。 |
| unhighlight | 取消高亮航线 |
| updateRouteNode | 更新航线节点。 |
{Array(SuperMap.Plot.RouteNodeType)} 航线点类型
{Array(SuperMap.Plot.RouteNodeType)} 下一个航线点类型
{Array(Array(SuperMap.Geometry.Point))} 航线路径点数组
applyLineStyle: function( style )
修改航线样式
| style | {Object} 航线样式, 可设样式参见下表。 |
| strokeColor | {String} 线颜色,默认为”#ff0000” |
| strokeDashstyle | {String} 线型,有dot,dash,dashdot,longdash,longdashdot,solid几种样式,默认为”solid”,solid表示实线 |
| strokeOpacity | {Number} 线透明度(0-1),默认为1 |
| strokeWidth | {Number} 线宽度,单位:pixel |
applyNodeStyle: function( style )
修改航线节点样式
| style | {Object} 航线节点样式, 可设样式参见下表。 |
| strokeColor | {String} 线颜色,默认为”#ff0000” |
| strokeDashstyle | {String} 线型,有dot,dash,dashdot,longdash,longdashdot,solid几种样式,默认为”solid”,solid表示实线 |
| strokeOpacity | {Number} 线透明度(0-1),默认为1 |
| strokeWidth | {Number} 线宽度,单位:pixel |
insertRouteNode: function ( routeNode, startNode, endNode, removeOldRel, startText, startRel, endText, endRel )
插入航线节点。
| routeNode | {SuperMap.Plot.RouteNode} 航线点 |
| startNode | {SuperMap.Plot.RouteNode} 插入的起始航线点 |
| endNode | {SuperMap.Plot.RouteNode} 插入的结束航线点 |
| removeOldRel | {Boolean} 是否移除原来的起始点与结束点间的连接关系 |
| startText | {Array(String)} 起始航线点与该航线点间文字 |
| startRel | {SuperMap.Plot.RelLineText} 起始航线点与该航线点间文字与线的关系 |
| endText | {Array(String)} 结束航线点与该航线点间文字 |
| endRel | {SuperMap.Plot.RelLineText} 结束航线点与该航线点间文字与线的关系 |
addRouteNode: function ( routeNode, startNode, startText, startRel )
添加航线节点。
| routeNode | {SuperMap.Plot.RouteNode} 航线点 |
| startNode | {SuperMap.Plot.RouteNode} 该节点的起始节点 |
| startText | {Array(String)} 该节点与上一节点间的文字 |
| startRel | {SuperMap.Plot.RelLineText} 该节点与上一节点间文字与线的关系 |
setNextRouteNodeType: function ( routeNodeType )
设置下一个航线节点类型。
| routeNodeType | {SuperMap.Plot.RouteNodeType} 下一个航线点类型 |
销毁几何图形。
destroy: function ()
高亮航线
highlight: function( highlightStyle )
取消高亮航线
unhighlight: function()
航线闪烁,闪烁完成后显示航线本身的颜色
blinkRoute: function( startColorStyle, endColorStyle, blinkNums, intervalTime )
修改航线线上文字或标牌文字的样式
applyTextStyle: function( style )
修改航线样式
applyLineStyle: function( style )
修改航线节点样式
applyNodeStyle: function( style )
删除航线节点。
deleteRouteNode: function ( routeNode )
更新航线节点。
updateRouteNode: function ( routeNode )
插入航线节点。
insertRouteNode: function ( routeNode, startNode, endNode, removeOldRel, startText, startRel, endText, endRel )
添加航线节点。
addRouteNode: function ( routeNode, startNode, startText, startRel )
设置下一个航线节点类型。
setNextRouteNodeType: function ( routeNodeType )
获取航线节点
getNodeFeature: function ( routeNode )
销毁几何图形。
initRoute: function ()
销毁几何图形。
finishRoute: function ()
通过遍历数组重新计算边界,在遍历每一子项中时调用 extend 方法。
calculateBounds: function()