make Popup.setLatLng faster, fix #2167
This commit is contained in:
parent
dd063b26a1
commit
44d98afb6a
@ -101,7 +101,8 @@ L.Popup = L.Class.extend({
|
||||
|
||||
setLatLng: function (latlng) {
|
||||
this._latlng = L.latLng(latlng);
|
||||
this.update();
|
||||
this._updatePosition();
|
||||
this._adjustPan();
|
||||
return this;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user