Skip to content

Commit 712a47a

Browse files
committed
revert "Use @eaws/pmtiles/eaws-regions.pmtiles"
This reverts commit a1c7cca. Reason for revert: GitHub pages does not support range queries: HTTP 416 Range Not Satisfiable.
1 parent a2d4095 commit 712a47a

4 files changed

Lines changed: 1 addition & 7 deletions

File tree

bun.lock

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
},
1616
"dependencies": {
1717
"@eaws/outline_properties": "8.0.6",
18-
"@eaws/pmtiles": "8.0.6",
1918
"ol": "10.7.0",
2019
"ol-ext": "4.0.36",
2120
"pmtiles": "4.3.0",

src/main.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import "ol/ol.css";
1919
import "ol-ext/dist/ol-ext.css";
2020
import "./style.css";
2121
import eawsOutlineProperties from "@eaws/outline_properties/index.json";
22-
import eawsPmtimes from "@eaws/pmtiles/eaws-regions.pmtiles?url";
2322

2423
import type {
2524
FeatureProperties,
@@ -133,7 +132,7 @@ function initMap() {
133132
}
134133

135134
const vectorRegions = new PMTilesVectorSource({
136-
url: eawsPmtimes,
135+
url: "https://static.avalanche.report/eaws-regions.pmtiles",
137136
attributions: [
138137
...Object.values(DANGER_RATINGS).map((rating) => dangerRatingLink(rating)),
139138
'<a href="https://gitlab.com/eaws/eaws-regions">eaws/eaws-regions</a> (CC0)',

src/ol-ext.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
declare module "@eaws/pmtiles/eaws-regions.pmtiles?url"
21
declare module "ol-ext/control/GeolocationButton";
32
declare module "ol-ext/overlay/Popup";
43
declare module "ol-ext/control/SearchNominatim";

0 commit comments

Comments
 (0)