Esri / offline-editor-js

ArcGIS JavaScript library for handling offline editing and tiling.
http://esri.github.io/offline-editor-js/demo/
Apache License 2.0
159 stars 142 forks source link

Unable to extend multiple feature layers #419

Closed webmapsolutions closed 8 years ago

webmapsolutions commented 8 years ago

There appears to be a bug affecting multiple layers in full offline mode. We are seeing not all layers being written to indexdb.

andygup commented 8 years ago

It looks like a bug. The layer.extend() callback is returning before the database add/update is complete. It's very possible if you do multiple extend() operations that the current add/update may overwrite or interrupt the previous operation causing a skip to occur.

You wouldn't notice a problem if you are only using a single feature layer.

I'll see about getting a fix implemented asap.