Include context options in reprojection cache key

This commit is contained in:
mike-000
2020-05-04 12:47:15 +01:00
committed by GitHub
parent 62f150176a
commit b2a1540ee0

View File

@@ -332,7 +332,8 @@ class TileImage extends UrlTile {
if (cache.containsKey(tileCoordKey)) {
tile = cache.get(tileCoordKey);
}
const key = this.getKey();
const key = this.getKey() +
(this.contextOptions_ ? '\n' + JSON.stringify(this.contextOptions_) : '');
if (tile && tile.key == key) {
return tile;
} else {