Removed redundant declaration.
This commit is contained in:
parent
164f6f275c
commit
5e33afd361
1 changed files with 0 additions and 21 deletions
|
|
@ -183,27 +183,6 @@ var DynmapTileLayer = L.TileLayer.extend({
|
|||
next.loadSrc();
|
||||
},
|
||||
|
||||
_removeOtherTiles: function(bounds) {
|
||||
var kArr, x, y, key;
|
||||
|
||||
for (key in this._tiles) {
|
||||
if (this._tiles.hasOwnProperty(key)) {
|
||||
kArr = key.split(':');
|
||||
x = parseInt(kArr[0], 10);
|
||||
y = parseInt(kArr[1], 10);
|
||||
|
||||
// remove tile if it's out of bounds
|
||||
if (x < bounds.min.x || x > bounds.max.x || y < bounds.min.y || y > bounds.max.y) {
|
||||
var tile = this._tiles[key];
|
||||
if (tile.parentNode === this._container) {
|
||||
this._container.removeChild(this._tiles[key]);
|
||||
}
|
||||
delete this._namedTiles[tile.tileName];
|
||||
delete this._tiles[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
_removeOtherTiles: function(bounds) {
|
||||
var kArr, x, y, key, tile;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue