Use getCoordinatePixel in ol.MapBrowserEvent
This commit is contained in:
@@ -53,7 +53,8 @@ goog.inherits(ol.MapBrowserEvent, ol.MapEvent);
|
|||||||
*/
|
*/
|
||||||
ol.MapBrowserEvent.prototype.getCoordinate = function() {
|
ol.MapBrowserEvent.prototype.getCoordinate = function() {
|
||||||
if (goog.isNull(this.coordinate_)) {
|
if (goog.isNull(this.coordinate_)) {
|
||||||
this.coordinate_ = this.map.getCoordinateFromPixel(this.getPixel());
|
this.coordinate_ = this.map.getEventCoordinate(
|
||||||
|
this.browserEvent.getBrowserEvent());
|
||||||
}
|
}
|
||||||
return this.coordinate_;
|
return this.coordinate_;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user