Add basic docs for mapbrowserevent

This commit is contained in:
Marc Jansen
2015-04-23 20:36:57 +02:00
parent b70a39b59d
commit 96f0374b2f
+3
View File
@@ -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
*/ */