add protocol register function
This commit is contained in:
@@ -65,6 +65,10 @@ function MBTiles(uri, callback) {
|
|||||||
return undefined;
|
return undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
MBTiles.registerProtocols = function(tilelive) {
|
||||||
|
tilelive.protocols['mbtiles:'] = MBTiles;
|
||||||
|
};
|
||||||
|
|
||||||
// Finds all mbtiles file in the filepath and returns their tilesource URI.
|
// Finds all mbtiles file in the filepath and returns their tilesource URI.
|
||||||
MBTiles.list = function(filepath, callback) {
|
MBTiles.list = function(filepath, callback) {
|
||||||
filepath = path.resolve(filepath);
|
filepath = path.resolve(filepath);
|
||||||
|
|||||||
Reference in New Issue
Block a user