From 4c04c9fa5ce1ab82d2a135918b9f3988461f4718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Mon, 14 Oct 2013 15:36:46 +0200 Subject: [PATCH] Use getCoordinatePixel in ol.MapBrowserEvent --- src/ol/mapbrowserevent.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ol/mapbrowserevent.js b/src/ol/mapbrowserevent.js index 26dcce04cd..382954e5a7 100644 --- a/src/ol/mapbrowserevent.js +++ b/src/ol/mapbrowserevent.js @@ -53,7 +53,8 @@ goog.inherits(ol.MapBrowserEvent, ol.MapEvent); */ ol.MapBrowserEvent.prototype.getCoordinate = function() { if (goog.isNull(this.coordinate_)) { - this.coordinate_ = this.map.getCoordinateFromPixel(this.getPixel()); + this.coordinate_ = this.map.getEventCoordinate( + this.browserEvent.getBrowserEvent()); } return this.coordinate_; };