Implement @elemoine's requestRenderFrame architecture

This commit is contained in:
Tom Payne
2012-10-04 11:12:48 +02:00
parent 18fdb66437
commit 12099bab56
3 changed files with 35 additions and 81 deletions

View File

@@ -184,13 +184,11 @@ ol.renderer.dom.Map.prototype.handleSizeChanged = function() {
/**
* Render the map. Sets up the layers pane on first render and adjusts its
* position as needed on subsequent calls.
*
* @return {boolean} Animating.
*/
ol.renderer.dom.Map.prototype.render = function() {
var map = this.getMap();
if (!map.isDef()) {
return false;
return;
}
var mapCenter = map.getCenter();