From adbd86feb89366ef7409471f4c694da6cec991f0 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Mon, 6 Aug 2012 01:19:59 +0200 Subject: [PATCH] Use continuous zoom by default --- src/ol/base/createmap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/base/createmap.js b/src/ol/base/createmap.js index a909ff0a37..a82fca0375 100644 --- a/src/ol/base/createmap.js +++ b/src/ol/base/createmap.js @@ -81,8 +81,8 @@ ol.createMap = function(target, opt_values, opt_rendererHints) { // FIXME this should be a configuration option var centerConstraint = ol.control.CenterConstraint.snapToPixel; - var resolutionConstraint = ol.control.ResolutionConstraint.createSnapToPower( - 2, ol.Projection.EPSG_3857_HALF_SIZE / 128); + var resolutionConstraint = ol.control.ResolutionConstraint.createContinuous( + 1.125, ol.Projection.EPSG_3857_HALF_SIZE / 128); var rotationConstraint = ol.control.RotationConstraint.none; var constraints = new ol.control.Constraints( centerConstraint, resolutionConstraint, rotationConstraint);