Don't use withFrozenRendering in ol.interaction.Interaction.zoomWithoutConstraints

This commit is contained in:
Tom Payne
2014-02-27 12:50:57 +01:00
parent e0c8b57e11
commit c9c8497b7e

View File

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