Add basic docs for mapbrowserevent
This commit is contained in:
@@ -45,6 +45,7 @@ ol.MapBrowserEvent = function(type, map, browserEvent, opt_dragging,
|
|||||||
this.browserEvent = browserEvent;
|
this.browserEvent = browserEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* The original browser event.
|
||||||
* @const
|
* @const
|
||||||
* @type {Event}
|
* @type {Event}
|
||||||
* @api stable
|
* @api stable
|
||||||
@@ -52,12 +53,14 @@ ol.MapBrowserEvent = function(type, map, browserEvent, opt_dragging,
|
|||||||
this.originalEvent = browserEvent.getBrowserEvent();
|
this.originalEvent = browserEvent.getBrowserEvent();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* The pixel of the original browser event.
|
||||||
* @type {ol.Pixel}
|
* @type {ol.Pixel}
|
||||||
* @api stable
|
* @api stable
|
||||||
*/
|
*/
|
||||||
this.pixel = map.getEventPixel(this.originalEvent);
|
this.pixel = map.getEventPixel(this.originalEvent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* The coordinate of the original browser event.
|
||||||
* @type {ol.Coordinate}
|
* @type {ol.Coordinate}
|
||||||
* @api stable
|
* @api stable
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user