Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

vue-baidu-map-v3

Dafrok160MIT1.0.2TypeScript support: included

Baidu Map Component for Vue 2.0

vue, baidu-map, bmap, vue-baidu-map, baidu, map

readme

VUE BAIDU MAP V3

Baidu Map components for Vue 2.x

npm Travis Package Quality npm license

Special Instruction

The current package is copied from the Vue-Baidu-Map of Dafrok. Since the original author has not maintained the Vue-Baidu-Map package, I copied it for personal use and changed the BAIDU Map API to 3.0

Languages

Documentation

https://dafrok.github.io/vue-baidu-map

Get Start

Installation

npm i --save vue-baidu-map-v3

Initialization

import Vue from 'vue'
import BaiduMap from 'vue-baidu-map-v3'

Vue.use(BaiduMap, {
  /* Visit http://lbsyun.baidu.com/apiconsole/key for details about app key. */
  ak: 'YOUR_APP_KEY'
})

Usage

<template>
  <baidu-map class="map">
  </baidu-map>
</template>

<style>
/* The container of BaiduMap must be set width & height. */
.map {
  width: 100%;
  height: 300px;
}
</style>

Contributing

Contributing Guide

License

MIT License

Copyright (c) 2016-present, Dafrok o.o@mug.dog