From 5a0894860effea44e013add08dac110039a48b9a Mon Sep 17 00:00:00 2001 From: Mourner Date: Tue, 12 Apr 2011 18:14:07 +0300 Subject: [PATCH] e.position -> e.latlng --- src/layer/vector/Path.Popup.js | 2 +- src/layer/vector/Path.js | 2 +- src/map/Map.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layer/vector/Path.Popup.js b/src/layer/vector/Path.Popup.js index 1934fc32..1060d34b 100644 --- a/src/layer/vector/Path.Popup.js +++ b/src/layer/vector/Path.Popup.js @@ -11,7 +11,7 @@ L.Path.include({ }, _openPopup: function(e) { - this._popup.setLatLng(e.position); + this._popup.setLatLng(e.latlng); this._map.openPopup(this._popup); } }); \ No newline at end of file diff --git a/src/layer/vector/Path.js b/src/layer/vector/Path.js index b3c37e28..114785e9 100644 --- a/src/layer/vector/Path.js +++ b/src/layer/vector/Path.js @@ -171,7 +171,7 @@ L.Path = L.Class.extend({ _fireMouseEvent: function(e) { if (!this.hasEventListeners(e.type)) { return; } this.fire(e.type, { - position: this._map.mouseEventToLatLng(e), + latlng: this._map.mouseEventToLatLng(e), layerPoint: this._map.mouseEventToLayerPoint(e) }); L.DomEvent.stopPropagation(e); diff --git a/src/map/Map.js b/src/map/Map.js index 286ec560..1a5ae17a 100644 --- a/src/map/Map.js +++ b/src/map/Map.js @@ -359,7 +359,7 @@ L.Map = L.Class.extend({ _fireMouseEvent: function(e) { if (!this.hasEventListeners(e.type)) { return; } this.fire(e.type, { - position: this.mouseEventToLatLng(e), + latlng: this.mouseEventToLatLng(e), layerPoint: this.mouseEventToLayerPoint(e) }); },