baidu-map-track-render-vue

1.0.10 • Public • Published

BaiduMapTrackRender.vue 百度地图轨迹绘制

Installation 安装

npm install baidu-map-track-render-vue --save

Import 引入

recommended: import vue component directly 建议直接引入vue组件

  import BaiduMapTrackRender from 'baidu-map-track-render-vue/src/BaiduMapTrackRender.vue'

Or import common or esm

  import BaiduMapTrackRender from 'baidu-map-track-render-vue'
  import 'baidu-map-track-render-vue/dist/BaiduMapTrackRender.css'

Usage 使用

<BaiduMapTrackRender ak="your key" :points="points"></BaiduMapTrackRender>

The ponit type is WGS84. Example points: 坐标是WGS84类型的. 示例点:

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时组件将不可见

  4. 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

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i baidu-map-track-render-vue

    Weekly Downloads

    0

    Version

    1.0.10

    License

    MIT

    Last publish

    Collaborators

    • php_he