new RoamingPath(options)
app/pathAnalysis/drivingRoute/RoamingPath.js, line 25
Name | Type | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
* |
|
Example
const data = [
[
102.36155776,
24.942773
],
[
102.36183286,
24.94251968
],
[
102.36242856,
24.94197088
]];
const rp = new RoamingPath({
map: this.$map,
positions: data
});
Classes
Members
-
Positions
-
路径坐标串
-
Speed
-
动画速度(毫秒)
-
Step
-
路径插值步长
Methods
-
multiplySpeed(x)
app/pathAnalysis/drivingRoute/RoamingPath.js, line 191 -
倍速
Name Type Description x
Number 倍数
-
pause()
app/pathAnalysis/drivingRoute/RoamingPath.js, line 165 -
暂停
-
reset()
app/pathAnalysis/drivingRoute/RoamingPath.js, line 182 -
重来
-
start()
app/pathAnalysis/drivingRoute/RoamingPath.js, line 148 -
开始/继续
-
stop()
app/pathAnalysis/drivingRoute/RoamingPath.js, line 173 -
结束