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
- Host: GitHub
- URL: https://github.com/phphe/baidu-map-track-render-vue
- Owner: phphe
- License: mit
- Created: 2017-04-23T14:50:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-28T11:49:25.000Z (almost 9 years ago)
- Last Synced: 2025-11-22T15:02:34.013Z (4 months ago)
- Language: Vue
- Size: 44.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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