mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 02:41:09 +00:00
update all github pages URLs. (#406)
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
[](https://www.npmjs.com/package/pmtiles)
|
||||
[](https://bundlephobia.com/package/pmtiles)
|
||||
[](https://pypi.org/project/pmtiles/)
|
||||
|
||||
🔎 **PMTiles Viewer:** [https://protomaps.github.io/PMTiles/](https://protomaps.github.io/PMTiles/) 🔎
|
||||
🔎 **PMTiles Viewer:** [https://pmtiles.io/](https://pmtiles.io) 🔎
|
||||
|
||||
# PMTiles
|
||||
|
||||
@@ -10,10 +9,10 @@ PMTiles is a single-file archive format for tiled data. A PMTiles archive can be
|
||||
|
||||
* [Protomaps Blog: Dynamic Maps, Static Storage](http://protomaps.com/blog/dynamic-maps-static-storage)
|
||||
|
||||
* [PMTiles Viewer](https://protomaps.github.io/PMTiles/) - inspect and preview PMTiles local or remote PMTiles archives.
|
||||
* [PMTiles Viewer](https://pmtiles.io) - inspect and preview PMTiles local or remote PMTiles archives.
|
||||
* Archives on cloud storage may require CORS for the origin `https://protomaps.github.io`
|
||||
|
||||
* [Vector Tiles Example (US Zip Codes)](https://protomaps.github.io/PMTiles/?url=https%3A%2F%2Fr2-public.protomaps.com%2Fprotomaps-sample-datasets%2Fcb_2018_us_zcta510_500k.pmtiles)
|
||||
* [Vector Tiles Example (US Zip Codes)](https://pmtiles.io/?url=https%3A%2F%2Fr2-public.protomaps.com%2Fprotomaps-sample-datasets%2Fcb_2018_us_zcta510_500k.pmtiles)
|
||||
|
||||
|
||||
Demos require MapLibre GL JS v1.15 or later.
|
||||
|
||||
@@ -97,9 +97,9 @@ const ExampleList = styled("div", {
|
||||
|
||||
const EXAMPLE_FILES = [
|
||||
"https://data.source.coop/protomaps/openstreetmap/tiles/v3.pmtiles",
|
||||
"https://protomaps.github.io/PMTiles/stamen_toner(raster)CC-BY+ODbL_z3.pmtiles",
|
||||
"https://pmtiles.io/stamen_toner(raster)CC-BY+ODbL_z3.pmtiles",
|
||||
"https://r2-public.protomaps.com/protomaps-sample-datasets/cb_2018_us_zcta510_500k.pmtiles",
|
||||
"https://protomaps.github.io/PMTiles/usgs-mt-whitney-8-15-webp-512.pmtiles",
|
||||
"https://pmtiles.io/usgs-mt-whitney-8-15-webp-512.pmtiles",
|
||||
];
|
||||
|
||||
function Start(props: {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
## Live Examples
|
||||
|
||||
[Vector example](https://protomaps.github.io/PMTiles/examples/openlayers/vector.html) | [Code](https://github.com/protomaps/PMTiles/blob/main/openlayers/examples/vector.html)
|
||||
[Vector example](https://pmtiles.io/examples/openlayers/vector.html) | [Code](https://github.com/protomaps/PMTiles/blob/main/openlayers/examples/vector.html)
|
||||
|
||||
[Raster example](https://protomaps.github.io/PMTiles/examples/openlayers/raster.html) | [Code](https://github.com/protomaps/PMTiles/blob/main/openlayers/examples/raster.html)
|
||||
[Raster example](https://pmtiles.io/examples/openlayers/raster.html) | [Code](https://github.com/protomaps/PMTiles/blob/main/openlayers/examples/raster.html)
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
Reference in New Issue
Block a user