Rename freeze/thaw to freezeRendering/unfreezeRendering

This commit is contained in:
Tom Payne
2012-07-22 22:24:04 +02:00
parent a2f24b9d43
commit 269bd9387e
3 changed files with 30 additions and 31 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ ol.control.DblClickZoom.prototype.handleMapBrowserEvent =
function(mapBrowserEvent) {
if (mapBrowserEvent.type == goog.events.EventType.DBLCLICK) {
var map = mapBrowserEvent.map;
map.whileFrozen(function() {
map.withFrozenRendering(function() {
// FIXME compute correct center for zoom
map.setCenter(mapBrowserEvent.getCoordinate());
var browserEvent = mapBrowserEvent.browserEvent;