Use getCoordinatePixel in ol.MapBrowserEvent
This commit is contained in:
1 parent
49e0af5abb
commit
4c04c9fa5c
1 file changed
+2
-1
@@ -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_;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user