From b9863953582d99a919786e6a3a53db18bdc7e34f Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 22 Jun 2012 20:25:26 +0200 Subject: [PATCH] This is not doing what you think it is. --- src/ol/Map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/Map.js b/src/ol/Map.js index aa40e43e13..6252cd2eed 100644 --- a/src/ol/Map.js +++ b/src/ol/Map.js @@ -408,11 +408,11 @@ ol.Map.prototype.moveByPx = function(dx, dy) { }; ol.Map.prototype.zoomIn = function() { - this.setZoom(this.zoom_++); + this.setZoom(++this.zoom_); }; ol.Map.prototype.zoomOut = function() { - this.setZoom(this.zoom_--); + this.setZoom(--this.zoom_); }; /**