update readme

This commit is contained in:
Konstantin Käfer
2011-07-13 16:52:44 +02:00
parent 1d7f9104c1
commit 1426060f44

View File

@@ -27,23 +27,5 @@ MBTiles files.
Rekey a compacted mbtiles to save space. Rekey a compacted mbtiles to save space.
### tilelive.js integration
Example of using `tilelive` to serve tiles from an `mbtiles` file.
var tilelive = new Server(require('mbtiles')),
tilelive.serve({
datasource: '/my/map.mbtiles',
x: 0,
y: 0,
z: 0,
format: 'png'
}, function(err, data) {
if (!err) throw Err
// data[0]: PNG image
// data[1]: HTTP headers object appropriate for PNG format
});
[1]: https://github.com/mapbox/tilelive.js [1]: https://github.com/mapbox/tilelive.js
[2]: http://mbtiles.org [2]: http://mbtiles.org