Open xahitbayri opened 4 years ago
In addition, native javascript implemention "L.TileLayer.PouchDBCached.js", It converts to base64, as below lines:
var binStr = atob(dataURL), len = binStr.length, arr = new Uint8Array(len);
for (var i = 0; i < len; i++) {
arr[i] = binStr.charCodeAt(i);
}
callback(new Blob([arr], { type: type || "image/png" }));
is it possible to add an option for this ? Or How can I do this by myself :) ?
Map tiles are stored as blob in PounchDB which follow their guideline. https://pouchdb.com/guides/attachments.html
Thank you very much for your response. I try to dump database pouchdb. This is the content of dump. I try to load this to a new database by "load" function. Although I got "Result : {"ok":true}" it is not loaded to this database. What could be the problem ?
It looks like a known bug. https://github.com/pouchdb-community/pouchdb-replication-stream/issues/75
Hi,
I am trying to use "pouchdb-replication-stream" and "pouchdb-load". Purpose is to download maps at PC1(internet available). Dump it to file. Go to PC2(internet not available). Load this file in this and use it.
In current approach, values are stored as URL's at Pouchdb. Is it possible to store them as base64 and load back ?