question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’d liked to use OpenLayers to generate textures to be used in a ThreeJS scene. Ideally this could be done in an OffscreenCanvas on a separate web worker. I don’t see a way to do this currently.

If that’s not possible is there an example of having direct control over the canvas used by the Map to render to instead it creating/removing the canvas from a container div (The target in the Map constructor)?

Describe the solution you’d like I don’t know if its a situation of lack of documentation/examples or missing features. Looking more for guidance than anything else at this stage.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
ahocevarcommented, Apr 8, 2020

We now have an OffscreenCanvas example. See #10828.

0reactions
stale[bot]commented, Jun 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OffscreenCanvas - Web APIs | MDN
Chrome Edge OffscreenCanvas Full support. Chrome69. Toggle history Full support. Edge79... OffscreenCanvas() constructor Full support. Chrome69. Toggle history Full support. Edge79... contextlost event Full support. Chrome99....
Read more >
Offscreen Canvas
Weekly webgl and creative coding newsletter. Techniques resources, inspiration and demos made by Daniel Velasquez!
Read more >
Speed up Your Canvas Operations with a Web Worker
The OffscreenCanvas allows to create a canvas that can be rendered off screen. It can also be used in web workers. Avoid jank...
Read more >
how to render offscreen canvas properly - html - Stack Overflow
I'm trying to create a basic example of offscreen rendering canvas but I'm error in js "cannot read property of context". actually my...
Read more >
OffscreenCanvas | Can I use... Support tables for ... - CanIUse
OffscreenCanvas allows canvas drawing to occur with no connection to the DOM and can be used inside workers. Usage % of. all users,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found