# w-leaflet-vue
A wrapper for vue2-leaflet.

![language](https://img.shields.io/badge/language-JavaScript-orange.svg) 
[![language](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://github.com/vuejs/vue) 
[![npm version](http://img.shields.io/npm/v/w-leaflet-vue.svg?style=flat)](https://npmjs.org/package/w-leaflet-vue) 
[![license](https://img.shields.io/npm/l/w-leaflet-vue.svg?style=flat)](https://npmjs.org/package/w-leaflet-vue) 
[![npm download](https://img.shields.io/npm/dt/w-leaflet-vue.svg)](https://npmjs.org/package/w-leaflet-vue) 
[![npm download](https://img.shields.io/npm/dm/w-leaflet-vue.svg)](https://npmjs.org/package/w-leaflet-vue) 
[![jsdelivr download](https://img.shields.io/jsdelivr/npm/hm/w-leaflet-vue.svg)](https://www.jsdelivr.com/package/npm/w-leaflet-vue)

## Documentation
To view documentation or get support, visit [docs](https://yuda-lyu.github.io/w-leaflet-vue/module-WLeafletVue.html).

## Example
To view some examples for more understanding, visit examples:

> **all examples:** [web](https://yuda-lyu.github.io/w-leaflet-vue/examples/app.html) [[source code](https://github.com/yuda-lyu/w-leaflet-vue/blob/master/docs/examples/app.html)]

## Installation

### Using npm(ES6 module):
```alias
npm i w-leaflet-vue
```

### In a browser(UMD module):

Add script for vue.
```alias
<script src="https://cdn.jsdelivr.net/npm/vue@2.x/dist/vue.min.js"></script>
```

Add script for w-leaflet-vue.
```alias
<script src="https://cdn.jsdelivr.net/npm/w-leaflet-vue@1.0.74/dist/w-leaflet-vue.umd.js"></script>
```
