A map that zooms.

This commit is contained in:
Tim Schaub
2012-06-22 20:46:09 +02:00
parent 0eaaefdf1d
commit 5fa42e9b30

View File

@@ -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);
};
/**