Merge pull request #1371 from elemoine/getbrowserevent
Add ol.MapBrowserEvent#getBrowserEvent
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
@exportProperty ol.MapBrowserEvent.prototype.getBrowserEvent
|
||||
@exportProperty ol.MapBrowserEvent.prototype.getCoordinate
|
||||
@exportProperty ol.MapBrowserEvent.prototype.getPixel
|
||||
@exportProperty ol.MapBrowserEvent.prototype.preventDefault
|
||||
|
||||
@@ -49,6 +49,14 @@ ol.MapBrowserEvent = function(type, map, browserEvent, opt_frameState) {
|
||||
goog.inherits(ol.MapBrowserEvent, ol.MapEvent);
|
||||
|
||||
|
||||
/**
|
||||
* @return {Event} The underlying browser event object.
|
||||
*/
|
||||
ol.MapBrowserEvent.prototype.getBrowserEvent = function() {
|
||||
return this.browserEvent.getBrowserEvent();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @return {ol.Coordinate} Coordinate.
|
||||
* @todo stability experimental
|
||||
|
||||
Reference in New Issue
Block a user