Skip to content

Commit 094c245

Browse files
committed
fix zoomIn/Out doesnt do anything
1 parent fab3004 commit 094c245

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)