Merge pull request #240 from giscloud/master
bugfix in the layer _reset method
This commit is contained in:
commit
ce72298d66
@ -114,7 +114,7 @@ L.TileLayer = L.Class.extend({
|
|||||||
|
|
||||||
_reset: function(clearOldContainer) {
|
_reset: function(clearOldContainer) {
|
||||||
this._tiles = {};
|
this._tiles = {};
|
||||||
if (clearOldContainer)
|
if (clearOldContainer && this._container)
|
||||||
this._container.innerHTML = "";
|
this._container.innerHTML = "";
|
||||||
this._initContainer();
|
this._initContainer();
|
||||||
this._container.innerHTML = '';
|
this._container.innerHTML = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user