Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

baidu-map-track-render-vue

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

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
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc