70 Commits

Author SHA1 Message Date
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
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
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
9470f24990 now, uploading attachments works (not complete) 2014-04-15 11:46:38 +02:00
Javier Abadia
fda270c218 almost working for uploading new attachments 2014-04-14 18:31:29 +02:00
Javier Abadia
0d66b7e4c9 new method to delete all attachments of a feature 2014-04-09 23:19:23 +02:00
Javier Abadia
1291976bbb reminder of task to do 2014-04-09 18:10:46 +02:00
Javier Abadia
381a18a161 comments for next steps 2014-04-09 18:10:45 +02:00
Javier Abadia
d6b6af7c0b store featurelayerurl along with attachment, so that we can keep attachments for different feature layers in the same indexeddb objectstore 2014-04-09 18:10:44 +02:00
Javier Abadia
3f8273be9e noticed a potential problem if we have multiple input nodes or multiple files 2014-04-09 18:10:43 +02:00
Javier Abadia
989de0688d store attachments in local storage
query them when showing the popup (can't display them though)
2014-04-09 18:10:42 +02:00
Javier Abadia
0970911db0 already read file(s) from input node into string(s) 2014-04-09 18:10:42 +02:00
Javier Abadia
1a0a6c3c2f low level functions in attachmentsStore.js 2014-04-09 18:10:36 +02:00
Javier Abadia
dc7d8ef0eb renamed attachmentStore.js file 2014-04-09 18:10:35 +02:00
Javier Abadia
a31266873f some comments about what needs to be done 2014-04-09 18:10:33 +02:00
Javier Abadia
01cd7db58c initial scaffold for attachments handling 2014-04-09 18:10:32 +02:00
andygup
1bb25d8c69 Removing existing attachments code. 2014-03-08 17:43:59 -07:00
Javier Abadia
02ddef81fc add CSS style to prevent phantom graphics from receiving mouse events 2014-03-02 16:03:33 +01:00
Javier Abadia
5b3439ebd2 phantom layers now on top of feature layers 2014-03-02 16:03:06 +01:00
Javier Abadia
51102a3442 spaces 2 tabs 2014-03-02 15:56:14 +01:00
Javier Abadia
7442fd32a2 improving phantom graphics symbology 2014-03-02 15:49:16 +01:00
Javier Abadia
ab05a7661e improving phantom graphics symbology 2014-03-02 15:48:49 +01:00
Javier Abadia
d04762ca94 improving phantom graphics symbology 2014-03-02 15:47:19 +01:00
Javier Abadia
0560513d8f improving phantom graphics symbology 2014-03-02 15:47:19 +01:00
andygup
6eb12ebd12 fixes default proxy paths. 2014-02-26 13:41:45 -07:00
andygup
60c13f494e fixes some breaking changes from last nights PR 2014-02-25 09:46:35 -07:00
andygup
0e83d60d5a added delete functionality 2014-02-24 18:31:58 -07:00
andygup
5dae3aae9d undid local proxy references so the repo can be shared 2014-02-24 09:20:30 -07:00
andygup
06aff6d2e1 test w/ different proxy. Is local proxy is garbaging up callback? 2014-02-24 09:20:30 -07:00
andygup
99c35768fe added deleteAttachments - not working 2014-02-24 09:20:30 -07:00
andygup
9bb95dbe08 basic functionality for addAttachments 2014-02-24 09:20:30 -07:00
andygup
ac3baa69b0 1st pass at bolting in attachment db store 2014-02-24 09:20:30 -07:00
andygup
e1b9587e09 basic attachment functionality working 2014-02-24 09:20:30 -07:00
andygup
ab140f1d45 globally changed tabs to spaces 2014-02-21 16:26:46 -07:00
andygup
9c37c84529 added comments for offlineFeaturesManager 2014-02-20 16:08:29 -07:00
Javier Abadia
bf3e419b05 changed name of private methods 2014-02-18 10:30:05 +01:00
Javier Abadia
21ed0cfe48 it works, but it's not entirely satisfactory 2014-02-12 23:57:30 +01:00
Javier Abadia
0a214822f4 trying to make the phantom layer transparent to mouse events 2014-02-11 23:43:55 +01:00
Javier Abadia
796f59a5c6 first draft of 'phantom layer' 2014-02-11 23:15:23 +01:00
Javier Abadia
94e58f9575 the offline detector lib is not used here 2014-02-09 19:26:25 +01:00