Skip to content

Commit

Permalink
Add new method: getZoom
Browse files Browse the repository at this point in the history
  • Loading branch information
crossbreeze committed Jul 7, 2012
1 parent be1a66b commit f243aab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gmaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ var GMaps = (function() {
this.map.setZoom(value);
};

this.getZoom = function() {
return this.map.getZoom();
};

this.zoomIn = function(value) {
this.map.setZoom(this.map.getZoom() + value);
};
Expand Down

0 comments on commit f243aab

Please sign in to comment.