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
|
* @interface
|
||||||
*/
|
*/
|
||||||
@@ -111,6 +128,7 @@ oli.interaction.DragAndDropEvent.prototype.projection;
|
|||||||
oli.interaction.DragAndDropEvent.prototype.file;
|
oli.interaction.DragAndDropEvent.prototype.file;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** @interface */
|
/** @interface */
|
||||||
oli.render.Event;
|
oli.render.Event;
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ ol.MapEventType = {
|
|||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {goog.events.Event}
|
* @extends {goog.events.Event}
|
||||||
|
* @implements {oli.MapEvent}
|
||||||
* @param {string} type Event type.
|
* @param {string} type Event type.
|
||||||
* @param {ol.Map} map Map.
|
* @param {ol.Map} map Map.
|
||||||
* @param {?olx.FrameState=} opt_frameState Frame state.
|
* @param {?olx.FrameState=} opt_frameState Frame state.
|
||||||
|
|||||||
Reference in New Issue
Block a user