close popup on open

This commit is contained in:
Mourner 2011-01-18 17:25:02 +02:00
parent 62e947f4cc
commit 410278dd58

View File

@ -1,6 +1,7 @@
L.Map.include({
openPopup: function(popup) {
this.closePopup();
this._popup = popup;
this.addLayer(popup);
},