From 410278dd58ac4a09f8246cecf4febe2a526fe52c Mon Sep 17 00:00:00 2001 From: Mourner Date: Tue, 18 Jan 2011 17:25:02 +0200 Subject: [PATCH] close popup on open --- src/map/Map.Popup.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/map/Map.Popup.js b/src/map/Map.Popup.js index e4900a7c..66a81053 100644 --- a/src/map/Map.Popup.js +++ b/src/map/Map.Popup.js @@ -1,6 +1,7 @@ L.Map.include({ openPopup: function(popup) { + this.closePopup(); this._popup = popup; this.addLayer(popup); },