update all github pages URLs. (#406)

This commit is contained in:
Brandon Liu
2024-06-08 10:22:27 -06:00
committed by GitHub
parent f50fc8bdf0
commit d16faa2658
6 changed files with 12 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
# PMTiles for Browsers + NodeJS
See the [JavaScript API docs](https://protomaps.github.io/PMTiles/typedoc/)
See the [JavaScript API docs](https://pmtiles.io/typedoc/)
the [PMTiles](https://www.npmjs.com/package/pmtiles) package can be included via script tag or ES6 module:
@@ -26,7 +26,7 @@ const p = new PMTiles('example.pmtiles')
leafletRasterLayer(p,{attribution:'© <a href="https://openstreetmap.org">OpenStreetMap</a>'}).addTo(map)
````
[Live example](https://protomaps.github.io/PMTiles/examples/leaflet.html) | [Code](https://github.com/protomaps/PMTiles/blob/main/js/examples/leaflet.html)
[Live example](https://pmtiles.io/examples/leaflet.html) | [Code](https://github.com/protomaps/PMTiles/blob/main/js/examples/leaflet.html)
### Leaflet: Vector tileset
@@ -50,7 +50,7 @@ var style = {
...
```
[Live example](https://protomaps.github.io/PMTiles/examples/maplibre.html) | [Code](https://github.com/protomaps/PMTiles/blob/main/js/examples/maplibre.html)
[Live example](https://pmtiles.io/examples/maplibre.html) | [Code](https://github.com/protomaps/PMTiles/blob/main/js/examples/maplibre.html)
# CORS

View File

@@ -17,7 +17,7 @@
<script type="text/javascript">
const map = L.map('map').setView([0, 0], 0);
const p = new pmtiles.PMTiles("https://protomaps.github.io/PMTiles/stamen_toner(raster)CC-BY+ODbL_z3.pmtiles")
const p = new pmtiles.PMTiles("https://pmtiles.io/stamen_toner(raster)CC-BY+ODbL_z3.pmtiles")
p.getHeader().then(h => {
let layer = pmtiles.leafletRasterLayer(p, {
maxzoom:h.maxZoom,

View File

@@ -21,7 +21,7 @@
let protocol = new pmtiles.Protocol();
maplibregl.addProtocol("pmtiles",protocol.tile);
let PMTILES_URL = "https://protomaps.github.io/PMTiles/protomaps(vector)ODbL_firenze.pmtiles";
let PMTILES_URL = "https://pmtiles.io/protomaps(vector)ODbL_firenze.pmtiles";
const p = new pmtiles.PMTiles(PMTILES_URL);