Add interface for map events so properties can be disambiguated
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user