# routermove

> 基于maptalks开发轨迹回放的插件

Latest version **1.0.5** (published 2019-01-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install routermove
pnpm add routermove
yarn add routermove
bun add routermove
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-01-09 |
| First published | 2018-12-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 12.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | oouyang |
| Maintainers | oouyang |
| Keywords | maptalks, gis |

## Links

- npm: https://www.npmjs.com/package/routermove
- Repository: https://github.com/OuYangResume/routermove
- Homepage: https://github.com/OuYangResume/routermove#readme
- Issues: https://github.com/OuYangResume/routermove/issues
- npm.io page: https://npm.io/package/routermove

## Dependencies (2)

- [maptalks](https://npm.io/package/maptalks.md) ^0.42.1
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.2.2

## Recent versions

- 1.0.5 (latest) — 2019-01-09
- 1.0.4 — 2018-12-24
- 1.0.3 — 2018-12-22
- 1.0.2 — 2018-12-22
- 1.0.1 — 2018-12-22
- 1.0.0 — 2018-12-22

## README

## 效果

* [Examples](http://39.108.100.163:8081/#/map/maptalks/move).

## 安装
  
* Install with npm: ```npm install routermove```. 

## 使用

```html
<script>
import RouterMove from 'routermove'
let option = {
        map: vm.map,
        lineData: [
          [111.32450763502036, 31.667512417065313],
          [113.32450763502036, 33.667512417065313],
          [114.32450763502036, 31.667512417065313],
          [114.32450763502036, 36.667512417065313],
          [116.32450763502036, 35.667512417065313]
        ]
      };
var path = new RouterMove(option);
path.open();
</script>
```

## API Reference

### `Constructor`

```javascript
new RouterMove(options);
```

* lineData **Object[]** 轨迹数据的数组。
* map **Map** maptalks 创建的map容器。
* options **Object** 其他属性
    * speed **Number** 轨迹的移动速度，默认为2。
    * isOpen **Boolean** 是否开启轨迹动画，默认为true。
    * isLineShow **Boolean**  是否显示轨迹底线，默认为true
### `open()`
开始回放

### `isContinued(boolean)`
暂停为false,继续为true。

### `close()`
清除轨迹

### `setData(lineData)`
设置轨迹的数据

### `setSpeed(number)`
设置轨迹移动速度

###`setMarkerStyle(style)`
设置动态点的样式

###`setLineStyle(style)`
设置底线样式

###`setDynamicLineStyle(style)`
设置动态线样式

---
_Source: https://npm.io/package/routermove · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
