An open API service indexing awesome lists of open source software.

https://github.com/xianaiwen/vue2-googlemap

基于 Vue 2.x 和google地图组件
https://github.com/xianaiwen/vue2-googlemap

googlemap javascript vue2

Last synced: 10 months ago
JSON representation

基于 Vue 2.x 和google地图组件

Awesome Lists containing this project

README

          

# vue2-googlemap

> 基于 Vue 2.x 和google地图的地图组件

## Install

``` bash
npm install -S vue2-googlemap
```

## Usage

``` javascript
import Vue from 'vue';
import vueGooglemap from 'vue2-googlemap';

Vue.use(vueGooglemap);

/*
The api key is required.
If you want to ignore the browser's language setting, you can set the language parameter.
Suggest to use the release version. v=3 by default.
*/
vueGooglemap.initGooglemap({
key: 'your GOOGLE_MAPS_API_KEY',
language: 'zh-CN',
v: '3',
})
```

## Components

### Map
``` javascript

```
### Marker
``` javascript

```
### infoWindow
``` javascript

```
### Circle
``` javascript

```
### Rectangle
``` javascript

```
### Polyline
``` javascript

```
### Polygon
``` javascript

```
## License

This project is covered under the MIT License. Feel free to use it wherever you like.