An open API service indexing awesome lists of open source software.

https://github.com/phphe/baidu-map-track-render-vue


https://github.com/phphe/baidu-map-track-render-vue

Last synced: 12 days ago
JSON representation

Awesome Lists containing this project

README

          

# BaiduMapTrackRender.vue 百度地图轨迹绘制

# Installation 安装
```sh
npm install baidu-map-track-render-vue --save
```

# Import 引入
recommended: import vue component directly
建议直接引入vue组件
```js
import BaiduMapTrackRender from 'baidu-map-track-render-vue/src/BaiduMapTrackRender.vue'
```

Or import common or esm
```js
import BaiduMapTrackRender from 'baidu-map-track-render-vue'
import 'baidu-map-track-render-vue/dist/BaiduMapTrackRender.css'
```
# Usage 使用
```html

```
The ponit type is WGS84. Example points:
坐标是WGS84类型的. 示例点:
```js
points: [
{ lng: 116.399, lat: 39.910 }
{ lng: 116.405, lat: 39.920 },
{ lng: 116.423493, lat: 39.907445 }
]
```
# Important 注意事项
1. 此组件仅连接给定的点
2. 此组件将转换坐标为BD09,所以仅能接受中国地区坐标
3. 一定要注意高度, 高度为0时组件将不可见

1. This component will only render given points to track
  2. This component will convert the coordinates to BD09, so can only accept the coordinates of the Chinese region
  3. Pay attention on height, when height is 0, the component will not be visible