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
+17 -1
View File
@@ -1,6 +1,16 @@
goog.provide('ol.MapEvent');
goog.provide('ol.MapEventType');
goog.require('goog.events.Event');
goog.require('ol.FrameState');
/**
* @enum {string}
*/
ol.MapEventType = {
POSTRENDER: 'postrender'
};
@@ -9,8 +19,9 @@ goog.require('goog.events.Event');
* @extends {goog.events.Event}
* @param {string} type Event type.
* @param {ol.Map} map Map.
* @param {?ol.FrameState=} opt_frameState Frame state.
*/
ol.MapEvent = function(type, map) {
ol.MapEvent = function(type, map, opt_frameState) {
goog.base(this, type);
@@ -24,6 +35,11 @@ ol.MapEvent = function(type, map) {
*/
this.defaultPrevented = false;
/**
* @type {?ol.FrameState}
*/
this.frameState = goog.isDef(opt_frameState) ? opt_frameState : null;
};
goog.inherits(ol.MapEvent, goog.events.Event);