From fc1b260bcbfe37aede11c866a4ea39e23b5ad099 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Thu, 9 May 2024 10:44:56 +0800 Subject: [PATCH] detect relative URL pmtiles correctly [#152] (#155) * detect relative URL pmtiles correctly [#152] * put in a placeholder URL to let URL() parse relative URLs without http prefix. * js 3.1.2; update changelog * fix examples --- CHANGELOG.md | 9 +++++++++ benchmark/index.html | 2 +- examples/comparison.html | 2 +- examples/fonts.html | 2 +- examples/inset.html | 2 +- examples/labels.html | 2 +- examples/leaflet.html | 2 +- examples/multi_source.html | 2 +- examples/pmtiles.html | 2 +- examples/pmtiles_headers.html | 2 +- examples/sandwich.html | 2 +- examples/sprites.html | 2 +- examples/static.html | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/view.ts | 5 +---- test/view.test.ts | 5 +++++ 17 files changed, 30 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db985b9e..16c1d12e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +# 3.1.2 +* Fix pmtiles URL detection on relative paths [#152] + +# 3.1.1 +* Detect pmtiles URLs by using URL parsing, which handles query parameters [#147] + +# 3.1.0 +* add `queryTileFeaturesDebug` back in for basic interactions (You should use MapLibre if you want interactivity) + # 3.0.0 * Unexport `PMTiles` because you shouldn't be depending on the one bundled in this library. diff --git a/benchmark/index.html b/benchmark/index.html index 3235e2cd..317da75c 100644 --- a/benchmark/index.html +++ b/benchmark/index.html @@ -6,7 +6,7 @@ - +