Skip to content

Commit c75e822

Browse files
committed
Website updates
1 parent 8250ac8 commit c75e822

File tree

9 files changed

+13
-10
lines changed

9 files changed

+13
-10
lines changed

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/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/render/canvas/ExecutorGroup.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/render/canvas/ExecutorGroup.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,14 @@ class ExecutorGroup {
216216

217217
const newContext = !this.hitDetectionContext_;
218218
if (newContext) {
219+
// Refrain from adding a 'willReadFrequently' hint in the options here.
220+
// While it will remove the "Canvas2D: Multiple readback operations using
221+
// getImageData are faster with the willReadFrequently attribute set
222+
// to true" warnings in the console, it makes hitDetection extremely
223+
// slow in Chrome when there are many features on the map
219224
this.hitDetectionContext_ = createCanvasContext2D(
220225
contextSize,
221226
contextSize,
222-
undefined,
223-
{willReadFrequently: false},
224227
);
225228
}
226229
const context = this.hitDetectionContext_;

dist/main.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)