You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
When using this plugin on a page with more than one map (both maps have same bounds and tiles), on initial sync, it generates a lot of document update conflicts. This is because it is trying to put tiles from two sources at the same time (I think).
To get around it I use the pouchdb.upsert plugin and change the put code to following:
this._db.putIfNotExists(tileUrl,doc).then(function(res){// success, res is {rev: '1-xxx', updated: true}}).catch(function(err){// error});
I am not sure if this sort of thing should be in the core library but wanted to raise this.
The text was updated successfully, but these errors were encountered:
When using this plugin on a page with more than one map (both maps have same bounds and tiles), on initial sync, it generates a lot of document update conflicts. This is because it is trying to put tiles from two sources at the same time (I think).
To get around it I use the pouchdb.upsert plugin and change the put code to following:
I am not sure if this sort of thing should be in the core library but wanted to raise this.
The text was updated successfully, but these errors were encountered: