Add interface for map events so properties can be disambiguated

This commit is contained in:
Tim Schaub
2014-06-03 12:43:45 -06:00
parent 13d964488f
commit 559feba1ed
2 changed files with 19 additions and 0 deletions

View File

@@ -75,6 +75,23 @@ oli.MapBrowserEvent.prototype.pixel;
/** @interface */
oli.MapEvent;
/**
* @type {ol.Map}
*/
oli.MapEvent.prototype.map;
/**
* @type {olx.FrameState}
*/
oli.MapEvent.prototype.frameState;
/**
* @interface
*/
@@ -111,6 +128,7 @@ oli.interaction.DragAndDropEvent.prototype.projection;
oli.interaction.DragAndDropEvent.prototype.file;
/** @interface */
oli.render.Event;

View File

@@ -27,6 +27,7 @@ ol.MapEventType = {
/**
* @constructor
* @extends {goog.events.Event}
* @implements {oli.MapEvent}
* @param {string} type Event type.
* @param {ol.Map} map Map.
* @param {?olx.FrameState=} opt_frameState Frame state.