Skip to content

Commit

Permalink
Merge pull request #66 from JoshCoady/feature-fix-zoom
Browse files Browse the repository at this point in the history
Fixed a couple bugs in the zoom functions
  • Loading branch information
petrsloup committed Feb 22, 2016
2 parents fab3004 + 5028ea0 commit b0e81e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api-l.js
Expand Up @@ -43,12 +43,12 @@ exportSymbolL('WebGLEarth.prototype.setView', function(center, opt_zoom) {


exportSymbolL('WebGLEarth.prototype.zoomIn', function(opt_delta) {
this.setZoom(this.getZoom + (goog.isNumber(opt_delta) ? opt_delta : 1));
this.setZoom(this.getZoom() + (goog.isNumber(opt_delta) ? opt_delta : 1));
});


exportSymbolL('WebGLEarth.prototype.zoomOut', function(opt_delta) {
this.setZoom(this.getZoom + (goog.isNumber(opt_delta) ? opt_delta : 1));
this.setZoom(this.getZoom() - (goog.isNumber(opt_delta) ? opt_delta : 1));
});


Expand Down

0 comments on commit b0e81e6

Please sign in to comment.