Skip to content

Commit 617d8e4

Browse files
committed
Website updates
1 parent ab60fe7 commit 617d8e4

File tree

9 files changed

+14
-8
lines changed

9 files changed

+14
-8
lines changed

dist/en/main/apidoc/module-ol_source_SentinelHub-SentinelHub.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ <h4 class="name">
12811281

12821282
<div class="tag-source">
12831283
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/SentinelHub.js">source/SentinelHub.js</a>,
1284-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/SentinelHub.js#L627">line 627</a>
1284+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/SentinelHub.js#L632">line 632</a>
12851285
</div>
12861286

12871287
</div>

dist/en/main/examples/common.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/renderer/webgl/TileLayerBase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function getRenderExtent(frameState, extent) {
124124
* @return {string} The cache key.
125125
*/
126126
export function getCacheKey(source, tileCoord) {
127-
return `${getUid(source)},${source.getKey()},${source.getRevision()},${getTileCoordKey(tileCoord)}`;
127+
return `${getUid(source)},${source.getKey()},${getTileCoordKey(tileCoord)}`;
128128
}
129129

130130
/**

dist/en/main/ol/source/SentinelHub.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ declare class SentinelHub extends DataTileSource<import("../DataTile.js").defaul
474474
*/
475475
setEvalscript(evalscript: Evalscript | string): void;
476476
fireWhenReady_(): void;
477+
getKeyForConfig_(): string;
477478
/**
478479
* @param {number} z The z tile index.
479480
* @param {number} x The x tile index.

dist/en/main/ol/source/SentinelHub.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/source/SentinelHub.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ class SentinelHub extends DataTileSource {
542542
if (!this.token_ || !this.evalscript_ || !this.inputData_) {
543543
return;
544544
}
545+
this.setKey(this.getKeyForConfig_());
545546
const state = this.getState();
546547
if (state === 'ready') {
547548
this.changed();
@@ -550,6 +551,10 @@ class SentinelHub extends DataTileSource {
550551
this.setState('ready');
551552
}
552553

554+
getKeyForConfig_() {
555+
return this.token_ + this.evalscript_ + JSON.stringify(this.inputData_);
556+
}
557+
553558
/**
554559
* @param {number} z The z tile index.
555560
* @param {number} x The x tile index.

0 commit comments

Comments
 (0)