Merge pull request #6133 from KlausBenndorf/docuFix
Doc clarification ol.MapBrowserEvent#pixel, ol.MapBrowserEvent#coordinate, ol.Map#getEventCoordinate
This commit is contained in:
@@ -674,7 +674,7 @@ ol.Map.prototype.hasFeatureAtPixel = function(pixel, opt_layerFilter, opt_this)
|
||||
|
||||
|
||||
/**
|
||||
* Returns the geographical coordinate for a browser event.
|
||||
* Returns the coordinate in view projection for a browser event.
|
||||
* @param {Event} event Event.
|
||||
* @return {ol.Coordinate} Coordinate.
|
||||
* @api stable
|
||||
|
||||
@@ -40,14 +40,14 @@ ol.MapBrowserEvent = function(type, map, browserEvent, opt_dragging,
|
||||
this.originalEvent = browserEvent;
|
||||
|
||||
/**
|
||||
* The pixel of the original browser event.
|
||||
* The map pixel relative to the viewport corresponding to the original browser event.
|
||||
* @type {ol.Pixel}
|
||||
* @api stable
|
||||
*/
|
||||
this.pixel = map.getEventPixel(browserEvent);
|
||||
|
||||
/**
|
||||
* The coordinate of the original browser event.
|
||||
* The coordinate in view projection corresponding to the original browser event.
|
||||
* @type {ol.Coordinate}
|
||||
* @api stable
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user