🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

baidu-map-track-render-vue

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baidu-map-track-render-vue

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

1.0.10
latest
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created

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 注意事项

  • 此组件仅连接给定的点

  • 此组件将转换坐标为BD09,所以仅能接受中国地区坐标

  • 一定要注意高度, 高度为0时组件将不可见

  • 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

FAQs

Package last updated on 28 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts