new TowardNode(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.TowardNode(options);
</script>
// ES6 Import
import { TowardNode } from '../../public/iclient-plot/iclient-plot-leaflet-es6.min.js';
new TowardNode(options);
common/plot/TowardNode.js, line 11
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
指向节点参数。
|
Members
-
indexnumber
-
标牌文字的索引号。
-
offsetXnumber
-
标牌文字与两航站点的中间点的X偏移量。
-
offsetYnumber
-
标牌文字与两航站点的中间点的Y偏移量。
-
relLineTextRelLineText
-
HJ航线文字与沿线的关系。
-
routeNodeIdstring
-
指向节点对象的routeNodeId。
-
styleObject
-
航线上文字或标牌文字样式。
-
textContentArray.<string>
-
两个节点间文字内容,文字内容保存在指向节点上。
Methods
-
clone(){TowardNode}
common/plot/TowardNode.js, line 94 -
克隆航线指向节点对象。
Returns:
Type Description TowardNode 克隆后的航线指向节点对象。 -
destroy()
common/plot/TowardNode.js, line 83 -
销毁图形对象数据。