Let source set the key, like other sources do

This commit is contained in:
ahocevar
2018-12-13 10:50:38 +01:00
parent 523d3a4e8c
commit ab797b7160
3 changed files with 5 additions and 7 deletions

View File

@@ -213,11 +213,11 @@ class VectorTile extends UrlTile {
const tile = new VectorImageTile(
tileCoord,
urlTileCoord !== null ? TileState.IDLE : TileState.EMPTY,
this.getRevision(),
urlTileCoord,
this.tileGrid,
this.sourceTiles_);
tile.key = this.getRevision().toString();
this.assignTiles(tile, pixelRatio, projection);
this.tileCache.set(tileCoordKey, tile);
return tile;