Create a basic example for OffscreenCanvas rendering

This commit is contained in:
Andreas Hocevar
2020-03-04 16:06:18 +01:00
parent 8b76f52652
commit 3f5022630b
5 changed files with 170 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
---
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"
---
<div id="map" class="map"></div>