RouteLayer

RouteLayer

路径层

Constructor

new RouteLayer(options)

Source:

路径层 初始化

Parameters:
Name Type Description
options *

Members

changeDirrection

Source:

改变线方向

getNearLine

Source:

获取最近的线

Methods

addData(data)

Source:

增加数据

Parameters:
Name Type Description
data *

clear()

Source:

清空

drawTrack(start, end, callback, tooltipFun, isCustom)

Source:

绘制轨迹

Parameters:
Name Type Description
start Array

[description]

end Array

[description]

callback function

[description]

tooltipFun function

[description]

isCustom Boolean

[description]

getWalk(line, start, end)

Source:

获取步行路径

Parameters:
Name Type Description
line *
start *
end *

init()

Source:

初始化

setUrl(url)

Source:

设置url

Parameters:
Name Type Description
url *

update()

Source:

更新