diff --git a/src/ol/Map.js b/src/ol/Map.js index b21f1a50c7..4a40faa1ad 100644 --- a/src/ol/Map.js +++ b/src/ol/Map.js @@ -418,11 +418,11 @@ ol.Map.prototype.moveByPx = function(dx, dy) { }; ol.Map.prototype.zoomIn = function() { - this.setZoom(++this.zoom_); + this.setZoom(this.zoom_+1); }; ol.Map.prototype.zoomOut = function() { - this.setZoom(--this.zoom_); + this.setZoom(this.zoom_-1); }; /**