Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gburgose/jquery-gmaps


https://github.com/gburgose/jquery-gmaps

googlemaps jquery maps markers

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

README

        

# jQuery Google Maps

[![npm version](https://badge.fury.io/js/jquery-gmaps.svg)](https://badge.fury.io/js/jquery-gmaps)

### Test on

Laravel Mix: 0.12.1

### What is jquery gMaps?

jQuery gMaps is intended to reduce the time of frontend development. You can create maps customized with html attributes and some lines of javascript.

### Installation

#### npm

```
npm install jquery-gmaps --save-dev
```

#### Webpack

```js
require('jquery-gmaps');
```

#### jQuery

```js
$(document).ready(function(){
$('#map').gmaps();
});
```

#### HTML

```html





Chile





Argentina





Brasil





Perú




```

### Map settings

| Attribute | Type | Values | Default | Explanation |
|-|-|-|-|-|
| data-key | String | -- | -- | You can get your api key [here](https://developers.google.com/maps/documentation/javascript/get-api-key). |
| data-zoom | Integer | -- | 4 | Sets the initial map zoom |
| data-clustering | Boolean | true or false | false | Group the map markers |

### Map controls

| Attribute | Type | Values | Default | Explanation |
|-|-|-|-|-|
| data-control-zoom | Boolean | true or false | false | -- |
| data-control-type | Boolean | true or false | false | -- |
| data-control-scale | Boolean | true or false | false | -- |
| data-control-streetview | Boolean | true or false | false | -- |
| data-control-rotate | Boolean | true or false | false | -- |
| data-control-fullscreen | Boolean | true or false | false | -- |

### Map events

| Attribute | Type | Values | Default | Explanation |
|-|-|-|-|-|
| data-event-draggable | Boolean | true or false | true | -- |
| data-event-doubleclick | Boolean | true or false | true | -- |
| data-event-mousewheel | Boolean | true or false | false | -- |

To be continued...