@rrc/vue-baidu-map
v0.20.8
Published
Baidu Map Component for Vue 2.0
Downloads
12
Maintainers
Readme
VUE BAIDU MAP
修改了一个问题 提了pr 先发布来开发使用着。 请关照 原作者仓库。
Languages
Documentation
https://dafrok.github.io/vue-baidu-map
Get Start
Installation
npm i --save vue-baidu-map
Initialization
import Vue from 'vue'
import BaiduMap from 'vue-baidu-map'
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
License
Copyright (c) 2016-present, Dafrok [email protected]