175 Commits

Author SHA1 Message Date
Andy Gup
7566970d01 updated for testing 2015-03-27 17:58:22 -06:00
Andy Gup
5f6ec59246 1st working ver of offline features. A few errs 2015-03-27 17:58:22 -06:00
Andy Gup
8da85c9adf removed unused code 2015-03-27 17:58:22 -06:00
Andy Gup
cb2c9a7f23 added promises to extend.update 2015-03-27 17:58:22 -06:00
Andy Gup
46053f325f fix if parameters 2015-03-27 17:58:22 -06:00
Andy Gup
7c3baa2753 added delete, getAllEdits + unit tests 2015-03-27 17:58:22 -06:00
Andy Gup
702387f7a3 added editExists() + unit test 2015-03-27 17:58:21 -06:00
Andy Gup
9f565d2d1d update existing edit + unit test 2015-03-27 17:58:21 -06:00
Andy Gup
150dd1b72d basic push functionality 2015-03-27 17:58:21 -06:00
Andy Gup
52adc5c595 initial stub for editsStore rewrite + unit tests 2015-03-27 17:58:21 -06:00
Andy Gup
0bb149934e update change log 2015-03-27 17:58:21 -06:00
Andy Gup
3647d2c6d2 add new methods 2014-11-26 14:02:28 -07:00
Andy Gup
52f14d193b Closes #242 - replace constructor properties 2014-09-30 11:46:23 -06:00
Andy Gup
247af2ea07 Closes #249 - add public proxyPath 2014-09-29 15:18:05 -06:00
Andy Gup
cbed7593ff removes version property from namespace 2014-09-08 18:42:34 -06:00
Andy Gup
07533857e8 remove function wrapper from namespaces 2014-09-08 17:11:10 -06:00
Andy Gup
e036dbe02c updates retrieveEditsQueue from private to public 2014-09-08 13:00:56 -06:00
Andy Gup
ae3ac63622 fixed minor bug 2014-09-08 11:41:43 -06:00
Andy Gup
f3a69f6ae5 updated namespace for consistency 2014-09-08 11:41:13 -06:00
Andy Gup
a0b989e514 minor update to namespaces 2014-09-05 16:20:42 -06:00
Andy Gup
6ee58bce80 fixes namespace issues. Allows for simultaneous multiple libraries 2014-09-05 15:58:04 -06:00
Andy Gup
5d87be2ddb updated library reference for attachmentsStore 2014-09-03 16:32:34 -06:00
Andy Gup
725be98506 initial refactor of OfflineFeaturesManager 2014-09-03 15:24:58 -06:00
Andy Gup
ef87da5ed1 added code comments 2014-07-25 14:36:47 -06:00
Andy Gup
4b03157e88 Check for attachments store 2014-07-25 14:26:56 -06:00
Andy Gup
aab0da7bc4 more cleanup 2014-06-11 09:32:14 -06:00
Andy Gup
08a9258522 changed how feature refs are handling internally. Slowww. Needs to be pushed to background thread. 2014-06-10 10:16:01 -06:00
Andy Gup
ee1e8d9b4a added restartOfflineFeaturesManager 2014-06-10 09:46:22 -06:00
Andy Gup
6a1339184a minor console.log tweak 2014-06-06 15:11:53 -06:00
Javier Abadia
873d8f9339 No matter what jshint says, these are not really properties, but string-indexed elements. We access them later with a string index that comes in the geometry.type property. I believe the code is clearer this way. 2014-05-17 17:30:56 +02:00
Matt Driscoll
a44157ffeb jshint files. Some still need some work but I didn't want to break anything. 2014-05-15 16:01:51 -07:00
Javier Abadia
fb063666e1 refactored promises 2014-04-29 17:59:10 +02:00
Javier Abadia
a201620e26 fixed offline attachments unit tests (proxy thing) 2014-04-29 00:13:19 +02:00
Javier Abadia
b467e439b5 reworked attachments-editor.html sample 2014-04-28 01:00:55 +02:00
Javier Abadia
8919ed60bb this caused one test to fail
remember, attachments management is optional
2014-04-27 22:37:24 +02:00
Javier Abadia
33be209b85 refactored reading of files into attachmentStore.js
much simpler and nice!
2014-04-27 22:37:23 +02:00
Javier Abadia
d2e3d13823 now, all attachment URLs are correctly revoked 2014-04-27 22:37:23 +02:00
Javier Abadia
d5c106fa14 first step into refactoring attachmentsStore.js 2014-04-27 22:37:23 +02:00
Javier Abadia
02f913bb43 replace the default URL that is set by attachmentEditor with the local file URL 2014-04-27 22:37:23 +02:00
Javier Abadia
611d509fb0 see local files using createObjectURL()
need to: 
- revoke the URL when deleting the attachment
- update the inmediate pop-up URL
2014-04-27 22:37:23 +02:00
Javier Abadia
f1f8111e50 delete of local attachments implemented 2014-04-27 01:15:07 +02:00
Javier Abadia
b58ba99d8a delete attachments of those features that are deleted offline 2014-04-27 00:08:48 +02:00
Javier Abadia
4ba10390ba fixed some JSLint warnings 2014-04-26 18:47:29 +02:00
Javier Abadia
cd0bcf9634 comments and code reordering to have a more clear structure inside the file 2014-04-15 16:47:34 +02:00
Javier Abadia
8973f76e6b fixed a difficult bug when extending XMLHttpRequest in with sendAsBinary() method in Chrome
attachment-editor.html sample works now
2014-04-15 15:43:56 +02:00
Javier Abadia
d681022d0a refactored attachmentsStore into offlineFeaturesManager (and not in each layer) 2014-04-15 14:09:15 +02:00
Javier Abadia
53da2e734a added getAllAttachments() method 2014-04-15 14:08:04 +02:00
Javier Abadia
89fced9e79 much more readable code 2014-04-15 12:45:05 +02:00
Javier Abadia
12be0cd6d6 now we can upload attachments and delete them from indexeddb afterwards 2014-04-15 12:30:30 +02:00
Javier Abadia
d92acc87b3 implemented delete() method 2014-04-15 12:01:07 +02:00