What is the simplest TMS tile proxy?
make build
See note below about installing dependencies.
Still too soon.
./bin/tile-proxy -config config.json -cors
HIT cache/osm/all/16/10486/25367.mvt
HIT cache/osm/all/16/10486/25368.mvt
HIT cache/osm/all/16/10485/25368.mvt
HIT cache/osm/all/16/10485/25367.mvt
HIT cache/osm/all/16/10492/25367.mvt
HIT cache/osm/all/16/10492/25368.mvt
HIT cache/osm/all/16/10493/25367.mvt
HIT cache/osm/all/16/10493/25368.mvt
{
"cache": { "name": "Disk", "path": "cache/" },
"layers": {
"osm/all": { "url": "https://vector.mapzen.com/osm/all/{z}/{x}/{y}.{fmt}", "formats": ["mvt", "topojson"] }
}
}
This does not happen like-magic yet...
var s = slippy.map.scene();
var cfg = s.config.sources['osm'];
var url = cfg.url.replace('https://vector.mapzen.com', 'http://localhost:9191');
cfg.url = url;
s.setDataSource('osm', cfg);
Vendoring has been disabled for the time being because when trying to load this package as a vendored dependency in another package it all goes pear-shape with errors like this:
make deps
# cd /Users/local/mapzen/mapzen-slippy-map/www-server/vendor/src/github.com/whosonfirst/go-httpony; git submodule update --init --recursive
fatal: no submodule mapping found in .gitmodules for path 'vendor/src/golang.org/x/net'
package github.com/whosonfirst/go-httpony: exit status 128
make: *** [deps] Error 1
Note that's the actual error. It is copy-pasted from a different package with a similar issue. The problem is the same fot this package but always seems to involve something in github.com/jtacoma/uritemplates
.
I have no idea and would welcome suggestions...