69 Commits

Author SHA1 Message Date
Javier Abadia
050934642f safe use of for...in to iterate over object keys 2014-02-03 11:04:29 +01:00
Javier Abadia
d6ef178792 queue optimization and return server responses to upper level code 2014-02-02 19:42:10 +01:00
Javier Abadia
11f2f0adaf constants for events, it makes easier to know what events can be emitted and what they mean 2014-02-02 19:41:10 +01:00
Javier Abadia
8ede3c77dc comments
clean unused code
2014-02-02 12:00:44 +01:00
Javier Abadia
70750e3b19 better handling of emitted events 2014-02-02 11:50:13 +01:00
Javier Abadia
864340d62a cleaner code 2014-02-02 11:23:03 +01:00
Javier Abadia
93dac25947 it works! 2014-02-02 11:08:05 +01:00
Javier Abadia
8c0e8f79b2 optimizing the edits queue... work in progress 2014-02-01 19:04:33 +01:00
Javier Abadia
2b702d5744 clarify meaning of states 2014-02-01 19:03:00 +01:00
Javier Abadia
742f641ff8 test for graphic objectids in local layer 2014-02-01 16:28:01 +01:00
Javier Abadia
5e4589e2d3 cleaner code 2014-01-30 16:53:13 +01:00
Javier Abadia
2eadaae362 better feedback for replayStoredEdits() 2014-01-30 16:40:47 +01:00
Javier Abadia
5f82c3f514 bug that made the app fail when reloading the app with pending edits 2014-01-30 15:09:59 +01:00
Javier Abadia
fcfde60396 fixed the local updating of graphics for offline edits... now working! 2014-01-29 18:32:51 +01:00
Javier Abadia
eb21ab750c fix bug reported by Andy
added new task in the ISSUES.md
2014-01-29 09:42:03 +01:00
Javier Abadia
9bfd204a98 new issue detected 2014-01-28 23:20:40 +01:00
Javier Abadia
09c59f8595 renamed offlineFeatureService to offlineFeaturesManager 2014-01-28 23:20:40 +01:00
Javier Abadia
6ca3dd28ee still some issues pending 2014-01-28 23:20:40 +01:00
Javier Abadia
0bbf9ca83a take care of updates for features added offline (replace negative tmp id by final id)
still has the problem with the Editor that removes the graphic from the layer after the update
2014-01-28 23:20:39 +01:00
Javier Abadia
0f35c55f7b getEditsStoreSizeBytes() works also when the localStorage is not initialized (our keys don't exist) 2014-01-28 23:20:39 +01:00
Javier Abadia
1f2c10e0ea prevent attributeEditor to appear after replaying the stored edits
be careful with updates for features added offline (replace tmp id by final id), (ongoing)
2014-01-28 23:20:39 +01:00
Javier Abadia
36651ee221 check .pushEdit() for success or failure 2014-01-28 23:20:38 +01:00
Javier Abadia
35ca131086 controlling QuotaError when localStorage is full 2014-01-28 23:20:38 +01:00
Javier Abadia
2918f449e8 added reminder for work to do 2014-01-28 23:20:38 +01:00
Javier Abadia
6d0fb7aa52 more issues 2014-01-28 23:20:38 +01:00
Javier Abadia
131817f288 more issues 2014-01-28 23:20:38 +01:00
Javier Abadia
909fa47549 use layer url as layer id (it's unique across different FeatureServices and it's persistent across different sessions) 2014-01-28 23:20:38 +01:00
Javier Abadia
6b9a4a91dd code cleaning 2014-01-28 23:20:37 +01:00
Javier Abadia
220dc4812e good advances 2014-01-28 23:20:37 +01:00
Javier Abadia
a7b2705803 it's starting to work 2014-01-28 23:20:37 +01:00
Javier Abadia
e0e495ef67 keep working in edit sample 2014-01-28 23:20:37 +01:00
Javier Abadia
8b32f1c96e adding offline capability to new sample 2014-01-28 23:20:37 +01:00
andygup
4f6ee9e518 Fixes issue #54 2014-01-27 18:04:38 -07:00
Javier Abadia
1bbaad5cea comments and post AMD clean-up 2014-01-22 00:19:45 +01:00
Javier Abadia
b1726ba880 removed unused and unneeded code 2014-01-22 00:19:45 +01:00
Javier Abadia
4961e62f56 minimal changes to make everything AMD compliant 2014-01-22 00:19:44 +01:00
Javier Abadia
d29dfb8b85 added methods:
isSupported()
getEditsStoreSizeBytes()
getLocalStorageSizeBytes()
2014-01-21 23:25:49 +01:00
Javier Abadia
6c6fb11086 methods return the element to undo/redo or null 2014-01-21 18:29:07 +01:00
Javier Abadia
008edaf67b renamed graphicsStore -> editsStore 2014-01-21 10:24:58 +01:00
Javier Abadia
67fd4c0be9 reorganized tests and methods 2014-01-21 00:26:11 +01:00
Javier Abadia
5733080102 undo/redo management & tests 2014-01-21 00:15:27 +01:00
Javier Abadia
f7ff11f572 serialize/deserialize don't need to be public operations
serialize graphics only to JSON object... the 'edit' will be serialized to string
2014-01-20 23:07:48 +01:00
Javier Abadia
f3f1d9fc53 low level management of pending edits storage in localStorage, looking very good 2014-01-20 17:58:57 +01:00
Javier Abadia
f09579dd6a better explanation 2014-01-20 12:26:52 +01:00
Javier Abadia
88752ba1fb serialization/deserialization: simple and correct 2014-01-20 11:55:43 +01:00
Javier Abadia
bee248312b it's nearly working 2014-01-20 00:30:40 +01:00
Javier Abadia
2c290e580b simplify code in _updateExistingLocalStore 2014-01-18 23:08:03 +01:00
Javier Abadia
2cd8850ae4 no need for "internal models" 2014-01-18 23:03:10 +01:00
Javier Abadia
b558111bcf this code is equivalent, except for the JSON correctness test, that should go elsewhere 2014-01-18 22:42:47 +01:00
Javier Abadia
9299d4cb70 simplified TOKEN separator logic, much easier when putting TOKENS between elements, and not AFTER elements 2014-01-18 22:34:22 +01:00