From c9c8497b7eedfc2f5773ce67c2fe64904f899996 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Thu, 27 Feb 2014 12:50:57 +0100 Subject: [PATCH] Don't use withFrozenRendering in ol.interaction.Interaction.zoomWithoutConstraints --- src/ol/interaction/interaction.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/ol/interaction/interaction.js b/src/ol/interaction/interaction.js index 92196acc62..dbc57deee1 100644 --- a/src/ol/interaction/interaction.js +++ b/src/ol/interaction/interaction.js @@ -206,15 +206,11 @@ ol.interaction.Interaction.zoomWithoutConstraints = })); } } + goog.asserts.assertInstanceof(view, ol.View2D); if (goog.isDefAndNotNull(opt_anchor)) { var center = view.calculateCenterZoom(resolution, opt_anchor); - map.withFrozenRendering(function() { - goog.asserts.assertInstanceof(view, ol.View2D); - view.setCenter(center); - view.setResolution(resolution); - }); - } else { - view.setResolution(resolution); + view.setCenter(center); } + view.setResolution(resolution); } };