Skip to content

Commit b0e81e6

Browse files
committed
Merge pull request #66 from JoshCoady/feature-fix-zoom
Fixed a couple bugs in the zoom functions
2 parents fab3004 + 5028ea0 commit b0e81e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/api-l.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ exportSymbolL('WebGLEarth.prototype.setView', function(center, opt_zoom) {
4343

4444

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

4949

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

5454

0 commit comments

Comments
 (0)