Skip to content

Commit b1bbc43

Browse files
committed
Website updates
1 parent 2516084 commit b1bbc43

12 files changed

Lines changed: 32 additions & 29 deletions

dist/en/main/apidoc/module-ol_Map-Map.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5098,7 +5098,7 @@ <h4 class="name">
50985098

50995099
<div class="tag-source">
51005100
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
5101-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1547">line 1547</a>
5101+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1550">line 1550</a>
51025102
</div>
51035103

51045104
</div>
@@ -5234,7 +5234,7 @@ <h4 class="name">
52345234

52355235
<div class="tag-source">
52365236
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
5237-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1558">line 1558</a>
5237+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1561">line 1561</a>
52385238
</div>
52395239

52405240
</div>
@@ -5370,7 +5370,7 @@ <h4 class="name">
53705370

53715371
<div class="tag-source">
53725372
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
5373-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1569">line 1569</a>
5373+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1572">line 1572</a>
53745374
</div>
53755375

53765376
</div>
@@ -5506,7 +5506,7 @@ <h4 class="name">
55065506

55075507
<div class="tag-source">
55085508
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
5509-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1589">line 1589</a>
5509+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1592">line 1592</a>
55105510
</div>
55115511

55125512
</div>
@@ -5642,7 +5642,7 @@ <h4 class="name">
56425642

56435643
<div class="tag-source">
56445644
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
5645-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1534">line 1534</a>
5645+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1537">line 1537</a>
56465646
</div>
56475647

56485648
</div>
@@ -5723,7 +5723,7 @@ <h4 class="name">
57235723

57245724
<div class="tag-source">
57255725
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
5726-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1507">line 1507</a>
5726+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1510">line 1510</a>
57275727
</div>
57285728

57295729
</div>
@@ -5982,7 +5982,7 @@ <h4 class="name">
59825982

59835983
<div class="tag-source">
59845984
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
5985-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1711">line 1711</a>
5985+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1714">line 1714</a>
59865986
</div>
59875987

59885988
</div>
@@ -6517,7 +6517,7 @@ <h4 class="name">
65176517

65186518
<div class="tag-source">
65196519
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
6520-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1725">line 1725</a>
6520+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1728">line 1728</a>
65216521
</div>
65226522

65236523
</div>
@@ -6646,7 +6646,7 @@ <h4 class="name">
66466646

66476647
<div class="tag-source">
66486648
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
6649-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1739">line 1739</a>
6649+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1742">line 1742</a>
66506650
</div>
66516651

66526652
</div>
@@ -6779,7 +6779,7 @@ <h4 class="name">
67796779

67806780
<div class="tag-source">
67816781
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
6782-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1752">line 1752</a>
6782+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1755">line 1755</a>
67836783
</div>
67846784

67856785
</div>
@@ -7223,7 +7223,7 @@ <h4 class="name">
72237223

72247224
<div class="tag-source">
72257225
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
7226-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1770">line 1770</a>
7226+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1773">line 1773</a>
72277227
</div>
72287228

72297229
</div>

dist/en/main/examples/common.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/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/examples/offscreen-canvas.worker.worker.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/examples/offscreen-canvas.worker.worker.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/examples/tiled-layer-rendering-in-offscreen-canvas.worker.worker.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/examples/tiled-layer-rendering-in-offscreen-canvas.worker.worker.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/Map.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/Map.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,16 +1238,19 @@ class Map extends BaseObject {
12381238
if (!tileQueue.isEmpty()) {
12391239
let maxTotalLoading = this.maxTilesLoading_;
12401240
let maxNewLoads = maxTotalLoading;
1241-
if (frameState) {
1242-
const hints = frameState.viewHints;
1243-
if (hints[ViewHint.ANIMATING] || hints[ViewHint.INTERACTING]) {
1244-
const lowOnFrameBudget = Date.now() - frameState.time > 8;
1245-
maxTotalLoading = lowOnFrameBudget ? 0 : 8;
1246-
maxNewLoads = lowOnFrameBudget ? 0 : 2;
1247-
}
1241+
const hints = frameState ? frameState.viewHints : undefined;
1242+
const animatingOrInteracting = hints
1243+
? hints[ViewHint.ANIMATING] || hints[ViewHint.INTERACTING]
1244+
: false;
1245+
if (animatingOrInteracting) {
1246+
const lowOnFrameBudget = Date.now() - frameState.time > 8;
1247+
maxTotalLoading = lowOnFrameBudget ? 0 : 8;
1248+
maxNewLoads = lowOnFrameBudget ? 0 : 2;
12481249
}
12491250
if (tileQueue.getTilesLoading() < maxTotalLoading) {
1250-
tileQueue.reprioritize(); // FIXME only call if view has changed
1251+
if (animatingOrInteracting) {
1252+
tileQueue.reprioritize();
1253+
}
12511254
tileQueue.loadMoreTiles(maxTotalLoading, maxNewLoads);
12521255
}
12531256
}

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.

0 commit comments

Comments
 (0)