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:
Neno 2011-07-31 19:20:53 +01:00
parent 2b1a64c66d
commit 8ac92f2303

View File

@ -109,8 +109,8 @@ L.TileLayer = L.Class.extend({
_reset: function() {
this._tiles = {};
this._initContainer();
this._container.innerHTML = '';
this._initContainer();
},
_update: function() {