prevent non loaded tiles errors

This commit is contained in:
Carlos Matallín 2013-07-30 11:37:18 +02:00
parent 0cea6f3b09
commit 298aa3e18c

View File

@ -107,8 +107,10 @@ L.TiledTorqueLayer = L.TileLayer.Canvas.extend({
},
_tileLoaded: function(tile, tilePoint, tileData) {
if(this._tiles[tilePoint.x + ':' + tilePoint.y] !== undefined) {
this._tiles[tilePoint.x + ':' + tilePoint.y].data = tileData;
this.drawTile(tile);
}
},
_loadTile: function(tile, tilePoint) {