e.position -> e.latlng

This commit is contained in:
Mourner 2011-04-12 18:14:07 +03:00
parent 8cb51d1c6c
commit 5a0894860e
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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);

View File

@ -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)
});
},