Skip to content

Instantly share code, notes, and snippets.

@keyz182
Created April 18, 2014 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keyz182/11060286 to your computer and use it in GitHub Desktop.
Save keyz182/11060286 to your computer and use it in GitHub Desktop.
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) {
console.log('file system retrieved.');
fs = fileSystem;
var dir = fs.root.getDirectory('tiles', null, function (directory) {
var absoluteCDVFileName = directory.toURL() + '/' + localFileName;
var name = 'test.mbtiles';
mbTilesPlugin.open({name: name, url: absoluteCDVFileName, type: type}, success, fail);
}, fail);
},fail);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment