Skip to content

Commit

Permalink
Use getCoordinatePixel in ol.MapBrowserEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
elemoine committed Oct 14, 2013
1 parent 49e0af5 commit 4c04c9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ol/mapbrowserevent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
};
Expand Down

0 comments on commit 4c04c9f

Please sign in to comment.