Replace compression polyfill ("Worker" related errors) (#222)

* replace compression-streams-polyfill with globalThis check [#167]

* work around web worker issue with decompression polyfill.

* js 2.10.0-beta.0

* js 2.10.0; update examples
This commit is contained in:
Brandon Liu
2023-07-31 22:20:42 +08:00
committed by GitHub
parent 6a4a403942
commit 77c956d381
7 changed files with 23 additions and 43 deletions

View File

@@ -4,7 +4,8 @@
<meta charset="utf-8"/>
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@2.4.0/dist/maplibre-gl.css" crossorigin="anonymous">
<script src="https://unpkg.com/maplibre-gl@2.4.0/dist/maplibre-gl.js" crossorigin="anonymous"></script>
<script src="https://unpkg.com/pmtiles@2.9.0/dist/index.js"></script>
<!-- <script src="https://unpkg.com/pmtiles@2.10.0/dist/index.js"></script> -->
<script src="../dist/index.js"></script>
<style>
body {
margin: 0;
@@ -78,4 +79,4 @@
})
</script>
</body>
</html>
</html>