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,7 @@
<meta charset="utf-8"/>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.9.0/dist/leaflet.js"></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>
<style>
body, #map {
height:100vh;