prevent non loaded tiles errors
This commit is contained in:
parent
0cea6f3b09
commit
298aa3e18c
@ -107,8 +107,10 @@ L.TiledTorqueLayer = L.TileLayer.Canvas.extend({
|
||||
},
|
||||
|
||||
_tileLoaded: function(tile, tilePoint, tileData) {
|
||||
this._tiles[tilePoint.x + ':' + tilePoint.y].data = tileData;
|
||||
this.drawTile(tile);
|
||||
if(this._tiles[tilePoint.x + ':' + tilePoint.y] !== undefined) {
|
||||
this._tiles[tilePoint.x + ':' + tilePoint.y].data = tileData;
|
||||
this.drawTile(tile);
|
||||
}
|
||||
},
|
||||
|
||||
_loadTile: function(tile, tilePoint) {
|
||||
|
Loading…
Reference in New Issue
Block a user