Class: PathRoamingPlugin

PathRoamingPlugin()

指定路径漫游插件

Constructor

new PathRoamingPlugin()

Methods

drawPath(options)

绘制漫游路径标识线
Parameters:
Name Type Description
options object 路径线参数
pointColor 点颜色 默认 '#ff0000'
pointPixel 点大小,像素 默认 6
lineColor 线颜色 默认 '#00ff00'
linePixel 线宽 像素 默认 3

removePath()

移除漫游路径标识线,如果有的话

setPath(coords, time)

设置路径漫游数据
Parameters:
Name Type Description
coords Array 路径一组坐标
time Number 整个漫游跑完的时间,毫秒

start()

开始漫游

stop()

停止漫游