add protocol register function

This commit is contained in:
Konstantin Käfer
2011-07-08 16:03:16 +02:00
parent 491f49570d
commit 732033fc5c

View File

@@ -65,6 +65,10 @@ function MBTiles(uri, callback) {
return undefined;
};
MBTiles.registerProtocols = function(tilelive) {
tilelive.protocols['mbtiles:'] = MBTiles;
};
// Finds all mbtiles file in the filepath and returns their tilesource URI.
MBTiles.list = function(filepath, callback) {
filepath = path.resolve(filepath);