Merge pull request #861 from danzel/master
Fix FeatureGroup.removeLayer removing popups
This commit is contained in:
commit
f8f04c3534
@ -26,7 +26,11 @@ L.FeatureGroup = L.LayerGroup.extend({
|
|||||||
|
|
||||||
L.LayerGroup.prototype.removeLayer.call(this, layer);
|
L.LayerGroup.prototype.removeLayer.call(this, layer);
|
||||||
|
|
||||||
return this.invoke('unbindPopup');
|
if (this._popupContent) {
|
||||||
|
return this.invoke('unbindPopup');
|
||||||
|
} else {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
bindPopup: function (content) {
|
bindPopup: function (content) {
|
||||||
|
Loading…
Reference in New Issue
Block a user