From a133beb168852fb6e6d50fcdb2dadc8c8ca1baa4 Mon Sep 17 00:00:00 2001 From: simonseyock Date: Tue, 15 Nov 2016 17:13:23 +0100 Subject: [PATCH 1/2] Documentation clarification Clarified the description of the pixel and coordinate attribute of the ol.MapBrowserEvent --- src/ol/mapbrowserevent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/mapbrowserevent.js b/src/ol/mapbrowserevent.js index 30cc787eda..375cce143b 100644 --- a/src/ol/mapbrowserevent.js +++ b/src/ol/mapbrowserevent.js @@ -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 geographical coordinate corresponding the original browser event. * @type {ol.Coordinate} * @api stable */ From 8c49f6db4613630dfa67d69273c07a7ebdae83af Mon Sep 17 00:00:00 2001 From: simonseyock Date: Tue, 15 Nov 2016 18:41:29 +0100 Subject: [PATCH 2/2] Changed wording --- src/ol/map.js | 2 +- src/ol/mapbrowserevent.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/map.js b/src/ol/map.js index fe14b3aed9..d46ac4a4fb 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -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 diff --git a/src/ol/mapbrowserevent.js b/src/ol/mapbrowserevent.js index 375cce143b..1ed49ab7b5 100644 --- a/src/ol/mapbrowserevent.js +++ b/src/ol/mapbrowserevent.js @@ -47,7 +47,7 @@ ol.MapBrowserEvent = function(type, map, browserEvent, opt_dragging, this.pixel = map.getEventPixel(browserEvent); /** - * The geographical coordinate corresponding the original browser event. + * The coordinate in view projection corresponding to the original browser event. * @type {ol.Coordinate} * @api stable */