Method TileLayer._reset now first cleans old container HTML and then initializes a new one.
This should remove a bug with using Map.setView() when old tiles would remain visible after the view has been reset.
This commit is contained in:
parent
2b1a64c66d
commit
8ac92f2303
@ -109,8 +109,8 @@ L.TileLayer = L.Class.extend({
|
||||
|
||||
_reset: function() {
|
||||
this._tiles = {};
|
||||
this._initContainer();
|
||||
this._container.innerHTML = '';
|
||||
this._initContainer();
|
||||
},
|
||||
|
||||
_update: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user