Include context options in reprojection cache key

fix prettier
This commit is contained in:
mike-000
2020-05-04 16:45:29 +01:00
committed by GitHub
parent 76d2d6e737
commit c0577c3293

View File

@@ -207,17 +207,17 @@ class TileImage extends UrlTile {
getGutter() { getGutter() {
return 0; return 0;
} }
/** /**
* Return the key to be used for all tiles in the source. * Return the key to be used for all tiles in the source.
* @return {string} The key for all tiles. * @return {string} The key for all tiles.
* @protected * @protected
*/ */
getKey() { getKey() {
return super.getKey() + return (
(this.contextOptions_ super.getKey() +
? '\n' + JSON.stringify(this.contextOptions_) (this.contextOptions_ ? '\n' + JSON.stringify(this.contextOptions_) : '')
: ''); );
} }
/** /**