Merge pull request #1732 from twpayne/render-sync

Switch to asynchronous rendering by default
This commit is contained in:
Tom Payne
2014-02-27 11:03:20 +01:00
20 changed files with 59 additions and 48 deletions
+2 -2
View File
@@ -122,7 +122,7 @@ ol.render.Box.prototype.requestMapRenderFrame_ = function() {
if (!goog.isNull(this.map_) &&
!goog.isNull(this.startPixel_) &&
!goog.isNull(this.endPixel_)) {
this.map_.requestRenderFrame();
this.map_.render();
}
};
@@ -134,7 +134,7 @@ ol.render.Box.prototype.setMap = function(map) {
if (!goog.isNull(this.postComposeListenerKey_)) {
goog.events.unlistenByKey(this.postComposeListenerKey_);
this.postComposeListenerKey_ = null;
this.map_.requestRenderFrame();
this.map_.render();
this.map_ = null;
}
this.map_ = map;