Files
openlayers/examples/offscreen-canvas.html
2021-11-02 22:10:27 +01:00

18 lines
609 B
HTML

---
layout: example.html
title: Vector tiles rendered in an offscreen canvas
shortdesc: Example of a map that delegates rendering to a worker.
docs: >
The map in this example is rendered in a web worker, using `OffscreenCanvas`. **Note:** This is currently only supported in Chrome and Edge.
tags: "worker, offscreencanvas, vector-tiles"
experimental: true
sources:
- path: offscreen-canvas.worker.js
as: worker.js
cloak:
- key: get_your_own_D6rA4zTHduk6KOKTXzGB
value: Get your own API key at https://www.maptiler.com/cloud/
---
<div id="map" class="map">
<pre id="info" class="info"/>
</div>