290144e9
易尊强
第一次
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# VUE BAIDU MAP
<p align="center">
<img src="https://dafrok.github.io/vue-baidu-map/favicon.png" width="200px">
</p>
<p align="center">Baidu Map components for Vue 2.x</p>
[]()
[]()
[](http://packagequality.com/#?package=vue-baidu-map)
[]()
[]()
## Languages
- [中文](https://github.com/Dafrok/vue-baidu-map/blob/master/README.zh.md)
- [English](https://github.com/Dafrok/vue-baidu-map/blob/master/README.md)
## Documentation
[https://dafrok.github.io/vue-baidu-map](https://dafrok.github.io/vue-baidu-map)
## Get Start
### Installation
```bash
npm i --save vue-baidu-map
```
### Initialization
```javascript
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
```vue
<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](https://github.com/Dafrok/vue-baidu-map/blob/master/CONTRIBUTING.md)
## License
[MIT License](https://opensource.org/licenses/MIT)
Copyright (c) 2016-present, Dafrok <o.o@mug.dog>
|