0.14.0 • Published 6 years ago
tilelive-http v0.14.0
tilelive-http
I am an HTTP source for tilelive.
Usage
var tilelive = require("@mapbox/tilelive");
require("tilelive-http")(tilelive);
require("@mapbox/mbtiles").registerProtocols(tilelive);
var template = "http://tile.stamen.com/watercolor/{z}/{x}/{y}.jpg";
var scheme = tilelive.Scheme.create("scanline", {
minzoom: 10,
maxzoom: 11,
bbox: [-118.9448, 32.8007, -117.6462, 34.8233]
});
var copyTask = new tilelive.CopyTask(template, "mbtiles://./watercolor-la.mbtiles", scheme);
copyTask.formats = ["tile"];
copyTask.start(function(err) {
if (err) {
throw err;
}
});
copyTask.on("progress", console.log);
copyTask.on("finished", function() {
console.log("Done!");
});
Environment Variables
TILELIVE_USER_AGENT
-User-Agent
header when making upstream requests
Gotchas
Vector tiles are gzipped at rest. They are served with Content-Encoding: gzip for transport, but by default tilelive-http
does not automatically decompress them. See mojodna/tilelive-http#13 and mapbox/vector-tile-spec#27 (comment) for more details.
0.14.0
6 years ago
0.13.0
7 years ago
0.12.2
7 years ago
0.12.1
7 years ago
0.12.0
7 years ago
0.11.3
8 years ago
0.11.2
8 years ago
0.11.1
8 years ago
0.11.0
8 years ago
0.10.1
8 years ago
0.10.0
8 years ago
0.9.0
8 years ago
0.8.0
9 years ago
0.7.0
9 years ago
0.6.1
9 years ago
0.6.0
9 years ago
0.5.0
10 years ago
0.4.0
10 years ago
0.3.0
10 years ago
0.2.3
10 years ago
0.2.2
10 years ago
0.2.1
10 years ago
0.2.0
10 years ago
0.1.2
10 years ago
0.1.1
10 years ago