e.position -> e.latlng
This commit is contained in:
parent
8cb51d1c6c
commit
5a0894860e
@ -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);
|
||||
}
|
||||
});
|
@ -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);
|
||||
|
@ -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)
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user