tilelive-http
I am an HTTP source for tilelive.
Usage
var tilelive = ;tilelive;; var template = "http://tile.stamen.com/watercolor/{z}/{x}/{y}.jpg"; var scheme = tileliveScheme; var copyTask = template "mbtiles://./watercolor-la.mbtiles" scheme;copyTaskformats = "tile"; copyTaskstart { if err throw err; }; copyTask;copyTask;
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.