Use getCoordinatePixel in ol.MapBrowserEvent

This commit is contained in:
Éric Lemoine
2013-10-14 15:36:46 +02:00
parent 49e0af5abb
commit 4c04c9fa5c

View File

@@ -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_;
};