Merge pull request #6133 from KlausBenndorf/docuFix

Doc clarification ol.MapBrowserEvent#pixel, ol.MapBrowserEvent#coordinate, ol.Map#getEventCoordinate
This commit is contained in:
Andreas Hocevar
2016-11-15 20:48:11 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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
*/