fixed an error at uninitialized layer container
This commit is contained in:
parent
061f3d6832
commit
56382fcefd
@ -113,7 +113,7 @@ L.TileLayer = L.Class.extend({
|
||||
|
||||
_reset: function(clearOldContainer) {
|
||||
this._tiles = {};
|
||||
if (clearOldContainer)
|
||||
if (clearOldContainer && this._container)
|
||||
this._container.innerHTML = "";
|
||||
this._initContainer();
|
||||
this._container.innerHTML = '';
|
||||
|
Loading…
Reference in New Issue
Block a user