From 44d98afb6a89fbd6ebeeec592802793486c1dd97 Mon Sep 17 00:00:00 2001 From: Vladimir Agafonkin Date: Thu, 7 Nov 2013 19:55:22 +0200 Subject: [PATCH] make Popup.setLatLng faster, fix #2167 --- src/layer/Popup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layer/Popup.js b/src/layer/Popup.js index f245d6e1..16ac9c0a 100644 --- a/src/layer/Popup.js +++ b/src/layer/Popup.js @@ -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; },