Tile renderers needn't listen for tile change

This commit is contained in:
Éric Lemoine
2013-03-20 22:58:03 +01:00
parent 7038ac0c81
commit 1d575309da
6 changed files with 22 additions and 39 deletions

View File

@@ -124,8 +124,6 @@ ol.renderer.dom.TileLayer.prototype.renderFrame =
this.updateWantedTiles(frameState.wantedTiles, tileSource, tileCoord);
tileCenter = tileGrid.getTileCoordCenter(tileCoord);
frameState.tileQueue.enqueue(tile, tileSourceKey, tileCenter);
} else if (tileState == ol.TileState.LOADING) {
this.listenToTileChange(tile);
} else if (tileState == ol.TileState.LOADED) {
tilesToDrawByZ[z][tileCoord.toString()] = tile;
continue;