Fire postrender events

This commit is contained in:
Tom Payne
2013-01-15 09:06:10 +01:00
parent f7982fc2de
commit 505987869e
2 changed files with 20 additions and 2 deletions
+3 -1
View File
@@ -3,7 +3,6 @@
// FIXME add tilt and height?
goog.provide('ol.Map');
goog.provide('ol.MapEventType');
goog.provide('ol.MapProperty');
goog.provide('ol.RendererHint');
goog.provide('ol.RendererHints');
@@ -665,6 +664,9 @@ ol.Map.prototype.renderFrame_ = function(time) {
this.frameState_ = frameState;
this.dirty_ = false;
this.dispatchEvent(
new ol.MapEvent(ol.MapEventType.POSTRENDER, this, frameState));
goog.global.setTimeout(this.handlePostRender_, 0);
};