Fix source key handling for interim tiles

This commit is contained in:
Andreas Hocevar
2021-08-10 20:00:58 +02:00
parent e8ead306ff
commit e7dfcc77ae
2 changed files with 3 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ class DataTileSource extends TileSource {
}
const tile = new DataTile({tileCoord: [z, x, y], loader: loader});
tile.key = this.getKey();
tile.addEventListener(EventType.CHANGE, this.handleTileChange_);
this.tileCache.set(tileCoordKey, tile);