diff --git a/src/ol/mapbrowserevent.js b/src/ol/mapbrowserevent.js index 448d14ccd0..0e1cf914bd 100644 --- a/src/ol/mapbrowserevent.js +++ b/src/ol/mapbrowserevent.js @@ -45,18 +45,18 @@ ol.MapBrowserEvent = function(type, map, browserEvent, opt_frameState) { */ this.originalEvent = browserEvent.getBrowserEvent(); - /** - * @type {ol.Coordinate} - * @api - */ - this.coordinate = map.getEventCoordinate(this.originalEvent); - /** * @type {ol.Pixel} * @api */ this.pixel = map.getEventPixel(this.originalEvent); + /** + * @type {ol.Coordinate} + * @api + */ + this.coordinate = map.getCoordinateFromPixel(this.pixel); + }; goog.inherits(ol.MapBrowserEvent, ol.MapEvent);