openlayermap
Version:
openlayer Map Component for Vue 2.0
68 lines (45 loc) • 1.42 kB
Markdown
# VUE BAIDU MAP
<p align="center">
<img src="https://dafrok.github.io/vue-baidu-map/favicon.png" width="200px">
</p>
<p align="center">基于 VUE 2.x 的openlayer地图组件</p>
[]()
[]()
[](http://packagequality.com/#?package=vue-baidu-map)
[]()
[]()
## 语言
- [中文](https://github.com/Dafrok/vue-baidu-map/blob/master/README.zh.md)
- [English](https://github.com/Dafrok/vue-baidu-map/blob/master/README.md)
## 文档
[https://dafrok.github.io/vue-baidu-map](https://dafrok.github.io/vue-baidu-map)
## 开始
### 安装
```bash
npm i --save vue-openlayer-map
```
### 初始化
```javascript
import Vue from 'vue'
import olMap from 'vue-openlayer-map'
Vue.use(olMap)
```
### 使用
```vue
<template>
<bs-map class="map">
</bs-map>
</template>
<style>
/* 地图容器必须设置宽和高属性 */
.map {
width: 400px;
height: 300px;
}
</style>
```
## 贡献
[贡献指南](https://github.com/Dafrok/vue-baidu-map/blob/master/CONTRIBUTING.md)
## 协议
[MIT 许可证](https://opensource.org/licenses/MIT)
版权所有 (c) 2016至今, Dafrok <o.o@mug.dog>