Include context options in reprojection cache key

fix prettier
This commit is contained in:
mike-000
2020-05-04 12:53:24 +01:00
committed by GitHub
parent b2a1540ee0
commit 9bf037947c

View File

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