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;
|
||||
|
||||
/**
|
||||
* The original browser event.
|
||||
* @const
|
||||
* @type {Event}
|
||||
* @api stable
|
||||
@@ -52,12 +53,14 @@ ol.MapBrowserEvent = function(type, map, browserEvent, opt_dragging,
|
||||
this.originalEvent = browserEvent.getBrowserEvent();
|
||||
|
||||
/**
|
||||
* The pixel of the original browser event.
|
||||
* @type {ol.Pixel}
|
||||
* @api stable
|
||||
*/
|
||||
this.pixel = map.getEventPixel(this.originalEvent);
|
||||
|
||||
/**
|
||||
* The coordinate of the original browser event.
|
||||
* @type {ol.Coordinate}
|
||||
* @api stable
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user