Skip to content

Commit

Permalink
Fixed zombie overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCortinas committed Feb 15, 2019
1 parent 4e92d0c commit 842ef5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/leaflet.wms.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ wms.Overlay = L.Layer.extend({
overlay.once('load', _swap, this);
function _swap() {
if (!this._map) {
overlay.remove();
return;
}
if (overlay._url != this._currentUrl) {
Expand Down

0 comments on commit 842ef5a

Please sign in to comment.