From 732033fc5c8f65a02e22812b055a5442eeb4a663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Fri, 8 Jul 2011 16:03:16 +0200 Subject: [PATCH] add protocol register function --- lib/mbtiles.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/mbtiles.js b/lib/mbtiles.js index 26761d8..c0e2b35 100644 --- a/lib/mbtiles.js +++ b/lib/mbtiles.js @@ -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);