Skip to content

Commit d87d807

Browse files
authored
Replace terrarium examples with mapterhorn (#618)
* update examples to maplibre 5.13.0
1 parent a25c830 commit d87d807

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

js/examples/maplibre.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<head>
33
<title>PMTiles MapLibre Example</title>
44
<meta charset="utf-8"/>
5-
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@4.7.0/dist/maplibre-gl.css" crossorigin="anonymous">
6-
<script src="https://unpkg.com/maplibre-gl@4.7.0/dist/maplibre-gl.js" crossorigin="anonymous"></script>
5+
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@5.13.0/dist/maplibre-gl.css" crossorigin="anonymous">
6+
<script src="https://unpkg.com/maplibre-gl@5.13.0/dist/maplibre-gl.js" crossorigin="anonymous"></script>
77
<script src="https://unpkg.com/pmtiles@4.3.0/dist/pmtiles.js"></script>
88
<style>
99
body {

js/examples/maplibre_advanced.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<head>
33
<title>PMTiles MapLibre Example</title>
44
<meta charset="utf-8"/>
5-
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@4.7.0/dist/maplibre-gl.css" crossorigin="anonymous">
6-
<script src="https://unpkg.com/maplibre-gl@4.7.0/dist/maplibre-gl.js" crossorigin="anonymous"></script>
5+
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@5.13.0/dist/maplibre-gl.css" crossorigin="anonymous">
6+
<script src="https://unpkg.com/maplibre-gl@5.13.0/dist/maplibre-gl.js" crossorigin="anonymous"></script>
77
<script src="https://unpkg.com/pmtiles@4.3.0/dist/pmtiles.js"></script>
88
<style>
99
body {

js/examples/maplibre_raster_dem.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<head>
33
<title>PMTiles MapLibre Raster DEM Example</title>
44
<meta charset="utf-8"/>
5-
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@4.7.0/dist/maplibre-gl.css" crossorigin="anonymous">
6-
<script src="https://unpkg.com/maplibre-gl@4.7.0/dist/maplibre-gl.js" crossorigin="anonymous"></script>
5+
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@5.13.0/dist/maplibre-gl.css" crossorigin="anonymous">
6+
<script src="https://unpkg.com/maplibre-gl@5.13.0/dist/maplibre-gl.js" crossorigin="anonymous"></script>
77
<script src="https://unpkg.com/pmtiles@4.3.0/dist/pmtiles.js"></script>
88
<style>
99
body {
@@ -40,8 +40,9 @@
4040
sources: {
4141
example_source: {
4242
type: "raster-dem",
43-
url: "pmtiles://https://r2-public.protomaps.com/protomaps-sample-datasets/terrarium_z9.pmtiles",
43+
url: "pmtiles://https://download.mapterhorn.com/planet.pmtiles",
4444
encoding: "terrarium",
45+
attribution: "<a href='https://mapterhorn.com/attribution'>© Mapterhorn</a>"
4546
},
4647
},
4748
layers: [

openlayers/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import { useGeographic } from 'ol/proj';
2323

2424
const rasterLayer = new WebGLTile({
2525
source: new PMTilesRasterSource({
26-
url:"https://r2-public.protomaps.com/protomaps-sample-datasets/terrarium_z9.pmtiles",
27-
attributions:["https://github.com/tilezen/joerd/blob/master/docs/attribution.md"],
26+
url:"https://download.mapterhorn.com/planet.pmtiles",
27+
attributions:["https://mapterhorn.com/attribution/"],
2828
tileSize: [512,512]
2929
})
3030
});

openlayers/examples/raster.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
<script type="text/javascript">
1818
const rasterLayer = new ol.layer.WebGLTile({
1919
source: new olpmtiles.PMTilesRasterSource({
20-
url:"https://r2-public.protomaps.com/protomaps-sample-datasets/terrarium_z9.pmtiles",
21-
attributions:["https://github.com/tilezen/joerd/blob/master/docs/attribution.md"],
20+
url:"https://download.mapterhorn.com/planet.pmtiles",
21+
attributions:["https://mapterhorn.com/attribution/"],
2222
tileSize: [512,512]
2323
})
2424
});

0 commit comments

Comments
 (0)