Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ The reference is saved using jQuery `data` on every element the plugin affects,

## Aditional Methods

This methods should be called on elements with initialized maps.
These methods should be called on elements with initialized maps.

* `centerAt`, usage:

Expand All @@ -100,6 +100,12 @@ $('#map').gMap('centerAt', { latitude: 0, longitude: 0, zoom: 10 });
$('#map').gMap('addMarker', { latitude: 0, longitude: 0, content: 'Some HTML content' });
```

* `zoomToFitMarkers`, zooms the map to fit all of the markers on it. Usage:

```javascript
$('#map').gMap('zoomToFitMarkers');
```

## Original License

gMap is licensed under [Creative Commons BY-SA 3.0](http://creativecommons.org/licenses/by-sa/3.0/) license. In short: You're allowed to copy, distribute, transmit and to adapt – as long as you attribute the work. If you alter, modify or build upon this sourcecode, you may distribute the resulting work only under the same, similar or compatible license.
Expand All @@ -108,4 +114,4 @@ gMap is licensed under [Creative Commons BY-SA 3.0](http://creativecommons.org/l

This plugin was originally developed by [Cedric Kastner](http://gmap.nurtext.de/).

Refactoring to use the Google Maps API V3 was done by [Mario Estrada](http://mario.ec).
Refactoring to use the Google Maps API V3 was done by [Mario Estrada](http://mario.ec).
Loading