* js 2.11.0

* update examples
This commit is contained in:
Brandon Liu
2023-09-28 15:14:50 +08:00
committed by GitHub
parent b815bab09c
commit 8c282b90da
6 changed files with 14 additions and 10 deletions

View File

@@ -1,3 +1,7 @@
2.11.0
* `FetchSource` takes optional 2nd param `Headers` to apply custom headers to all requests.
2.10.0
* Replace `DecompressionStream` polyfill with own `globalThis` detection because of web workers problems.

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.10.0/dist/index.js"></script>
<script src="https://unpkg.com/pmtiles@2.11.0/dist/index.js"></script>
<style>
body, #map {
height:100vh;

View File

@@ -2,9 +2,9 @@
<head>
<title>PMTiles MapLibre Example</title>
<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.10.0/dist/index.js"></script>
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@3.3.1/dist/maplibre-gl.css" crossorigin="anonymous">
<script src="https://unpkg.com/maplibre-gl@3.3.1/dist/maplibre-gl.js" crossorigin="anonymous"></script>
<script src="https://unpkg.com/pmtiles@2.11.0/dist/index.js"></script>
<style>
body {
margin: 0;

View File

@@ -2,9 +2,9 @@
<head>
<title>PMTiles MapLibre Raster DEM Example</title>
<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.10.0/dist/index.js"></script>
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@3.3.1/dist/maplibre-gl.css" crossorigin="anonymous">
<script src="https://unpkg.com/maplibre-gl@3.3.1/dist/maplibre-gl.js" crossorigin="anonymous"></script>
<script src="https://unpkg.com/pmtiles@2.11.0/dist/index.js"></script>
<style>
body {
margin: 0;

4
js/package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "pmtiles",
"version": "2.10.0",
"version": "2.11.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "pmtiles",
"version": "2.10.0",
"version": "2.11.0",
"license": "BSD-3-Clause",
"dependencies": {
"fflate": "^0.8.0"

View File

@@ -1,6 +1,6 @@
{
"name": "pmtiles",
"version": "2.10.0",
"version": "2.11.0",
"description": "PMTiles archive decoder for browsers",
"main": "dist/index.cjs",
"module": "dist/index.mjs",