make Popup.setLatLng faster, fix #2167

This commit is contained in:
Vladimir Agafonkin 2013-11-07 19:55:22 +02:00
parent dd063b26a1
commit 44d98afb6a

View File

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