Correct type for imagesToLoad. Add note about shorter path.

This commit is contained in:
Tim Schaub
2012-09-25 12:07:41 +02:00
parent 3e01ca97c3
commit 900eead7c6

View File

@@ -377,7 +377,7 @@ ol.renderer.webgl.TileLayer.prototype.render = function() {
var tilesToDrawByZ = {};
/**
* @type {Array.<ol.Tile>}
* @type {Array.<Image>}
*/
var imagesToLoad = [];
@@ -387,6 +387,7 @@ ol.renderer.webgl.TileLayer.prototype.render = function() {
var tile = tileStore.getTile(tileCoord);
if (goog.isNull(tile)) {
// FIXME - consider returning here as this is outside the store's extent
} else if (tile.getState() == ol.TileState.LOADED) {
if (mapRenderer.isImageTextureLoaded(tile.getImage())) {
tilesToDrawByZ[z][tileCoord.toString()] = tile;