I am working with MBTiles, and have been able to configure Tilestache to serve my tileset. My problem, though, is that I was only able to do this by changing the provider and URL in the existing "example" layer, like so:
{
"cache":
{
"name": "Test",
"path": "/tmp/stache",
"umask": "0000"
},
"layers":
{
"osm":
{
"provider": {"name": "proxy", "provider": "OPENSTREETMAP"},
},
"example":
{
"provider": {
"name": "mbtiles",
"tileset": "file://var/www/sandmap.mbtiles"
}
}
}
}
I cannot add a new layer and make it work. In fact, if I try to change the name of "example" to something else, and then use that layername as the directory in my browser URL, I get the page with "Known unknown! "layername" is not a layer I know about. Here are some that I do know about: example, osm." I can still use "example" as the directory and my tiles show up (yes, I have erased my browser cache to test this). This is the only tilestache.cfg file on the server. It seems like "example" and "osm" are hard-coded as the only recognized layer names somewhere outside the cfg file, but I am stumped as to where or how to change/add to them. Anyone got any ideas?