Don't use withFrozenRendering in ol.interaction.Interaction.zoomWithoutConstraints
This commit is contained in:
@@ -206,15 +206,11 @@ ol.interaction.Interaction.zoomWithoutConstraints =
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
goog.asserts.assertInstanceof(view, ol.View2D);
|
||||||
if (goog.isDefAndNotNull(opt_anchor)) {
|
if (goog.isDefAndNotNull(opt_anchor)) {
|
||||||
var center = view.calculateCenterZoom(resolution, opt_anchor);
|
var center = view.calculateCenterZoom(resolution, opt_anchor);
|
||||||
map.withFrozenRendering(function() {
|
view.setCenter(center);
|
||||||
goog.asserts.assertInstanceof(view, ol.View2D);
|
|
||||||
view.setCenter(center);
|
|
||||||
view.setResolution(resolution);
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
view.setResolution(resolution);
|
|
||||||
}
|
}
|
||||||
|
view.setResolution(resolution);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user