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

Working with multiple Feature layers #436

Closed dpinart closed 8 years ago

dpinart commented 8 years ago

Hi

I'm trying to extend a couple of layers with no success.Since FEATURE_LAYER_JSON_ID is alway set to feature-layer-object-1001 only the last added layer gets persisted in the browser's IndexedDB. Is it possible to work with more than 1 FeatureLayer? If so, can somebody point me to a demo or doc?

Thanks

andygup commented 8 years ago

Is it possible to work with more than 1 FeatureLayer?

Hi, for now there is one sample that demonstrates the basic pattern. the appcache-twofeatureslayer-noedit.html sample shows how to do it for full offline with OfflineEditAdvanced. You can also use a similar pattern for intermittent offline with the OfflineEditBasic library.

I recommend checking out the documentation here and the How to use the advanced edit library.

I also added a label to this issue that use of the edit library with multiple layers needs to have better documentation.

dpinart commented 8 years ago

Thanks Andy

I was using an older version I download some weeks ago. I just saw the new version from 4 weeks ago and the two features layers demo.

Gonna try the proposed pattern

dpinart commented 8 years ago

Can I combine tpk files with OfflineEditAdvanced lib?

andygup commented 8 years ago

Yep, you can combine tpk's with OfflineEditAdvanced.