Remove accidently committed changes
This commit is contained in:
@@ -72,12 +72,6 @@ class VectorImageTile extends Tile {
|
|||||||
*/
|
*/
|
||||||
this.sourceTiles_ = sourceTiles;
|
this.sourceTiles_ = sourceTiles;
|
||||||
|
|
||||||
/**
|
|
||||||
* @private
|
|
||||||
* @type {boolean}
|
|
||||||
*/
|
|
||||||
this.sourceTilesLoaded = false;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Keys of source tiles used by this tile. Use with {@link #getTile}.
|
* Keys of source tiles used by this tile. Use with {@link #getTile}.
|
||||||
* @type {Array<string>}
|
* @type {Array<string>}
|
||||||
@@ -318,8 +312,7 @@ class VectorImageTile extends Tile {
|
|||||||
if (loaded == this.tileKeys.length) {
|
if (loaded == this.tileKeys.length) {
|
||||||
this.loadListenerKeys_.forEach(unlistenByKey);
|
this.loadListenerKeys_.forEach(unlistenByKey);
|
||||||
this.loadListenerKeys_.length = 0;
|
this.loadListenerKeys_.length = 0;
|
||||||
this.sourceTilesLoaded = true;
|
this.setState(TileState.LOADED);
|
||||||
this.changed();
|
|
||||||
} else {
|
} else {
|
||||||
this.setState(empty == this.tileKeys.length ? TileState.EMPTY : TileState.ERROR);
|
this.setState(empty == this.tileKeys.length ? TileState.EMPTY : TileState.ERROR);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,12 +108,6 @@ class CanvasVectorTileLayerRenderer extends CanvasTileLayerRenderer {
|
|||||||
*/
|
*/
|
||||||
this.renderedLayerRevision_;
|
this.renderedLayerRevision_;
|
||||||
|
|
||||||
/**
|
|
||||||
* @private
|
|
||||||
* @type {Array.<import("../../VectorImageTile.js").default>}
|
|
||||||
*/
|
|
||||||
this.tilesToRender_ = [];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {import("../../transform.js").Transform}
|
* @type {import("../../transform.js").Transform}
|
||||||
@@ -140,13 +134,11 @@ class CanvasVectorTileLayerRenderer extends CanvasTileLayerRenderer {
|
|||||||
*/
|
*/
|
||||||
getTile(z, x, y, pixelRatio, projection) {
|
getTile(z, x, y, pixelRatio, projection) {
|
||||||
const tile = super.getTile(z, x, y, pixelRatio, projection);
|
const tile = super.getTile(z, x, y, pixelRatio, projection);
|
||||||
if (tile.getState() === TileState.IDLE) {
|
if (tile.getState() === TileState.LOADED) {
|
||||||
const key = listen(tile, EventType.CHANGE, function() {
|
this.createReplayGroup_(/** @type {import("../../VectorImageTile.js").default} */ (tile), pixelRatio, projection);
|
||||||
if (tile.getState() === TileState.LOADING && tile.sourceTilesLoaded) {
|
if (this.context) {
|
||||||
this.tilesToRender_.push(tile);
|
this.renderTileImage_(/** @type {import("../../VectorImageTile.js").default} */ (tile), pixelRatio, projection);
|
||||||
unlistenByKey(key);
|
}
|
||||||
}
|
|
||||||
}.bind(this));
|
|
||||||
}
|
}
|
||||||
return tile;
|
return tile;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user