Merge pull request #2161 from tschaub/exports
Map event and vector source exports.
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.
|
||||||
@@ -36,12 +37,16 @@ ol.MapEvent = function(type, map, opt_frameState) {
|
|||||||
goog.base(this, type);
|
goog.base(this, type);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* The map where the event occurred.
|
||||||
* @type {ol.Map}
|
* @type {ol.Map}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
this.map = map;
|
this.map = map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* The frame state at the time of the event.
|
||||||
* @type {?olx.FrameState}
|
* @type {?olx.FrameState}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
this.frameState = goog.isDef(opt_frameState) ? opt_frameState : null;
|
this.frameState = goog.isDef(opt_frameState) ? opt_frameState : null;
|
||||||
|
|
||||||
|
|||||||
@@ -346,6 +346,7 @@ ol.source.Vector.prototype.getExtent = function() {
|
|||||||
*
|
*
|
||||||
* @param {string|number} id Feature identifier.
|
* @param {string|number} id Feature identifier.
|
||||||
* @return {ol.Feature} The feature (or `null` if not found).
|
* @return {ol.Feature} The feature (or `null` if not found).
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
ol.source.Vector.prototype.getFeatureById = function(id) {
|
ol.source.Vector.prototype.getFeatureById = function(id) {
|
||||||
var feature = this.idIndex_[id.toString()];
|
var feature = this.idIndex_[id.toString()];
|
||||||
|
|||||||
Reference in New Issue
Block a user