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
|
6585928cf3
|
more JSLint fixes
|
2014-04-26 19:13:34 +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 |
|
Javier Abadia
|
9470f24990
|
now, uploading attachments works (not complete)
|
2014-04-15 11:46:38 +02:00 |
|
Javier Abadia
|
363396faea
|
fixed getAttachmentsByFeatureLayer() to support negative featureIds
fixed replaceFeatureId() method to allow changes to be really written
|
2014-04-15 11:45:09 +02:00 |
|
Javier Abadia
|
fda270c218
|
almost working for uploading new attachments
|
2014-04-14 18:31:29 +02:00 |
|
Javier Abadia
|
db7f2b1f45
|
add getAttachmentsByFeatureLayer() method to attachmentsStore
|
2014-04-14 18:00:04 +02:00 |
|
Javier Abadia
|
25d427faaf
|
added replaceFeatureId() method to low level attachmentsStore module
|
2014-04-14 17:34:41 +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
|
c50559a575
|
changed properties of stored attachments to mimic return values of queryAttachmentInfos REST API
|
2014-04-09 18:10:40 +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 |
|
Javier Abadia
|
0e3ccbb503
|
renamed dbStore to TilesStore
|
2014-04-04 00:34:54 +02:00 |
|
Javier Abadia
|
be8c36f827
|
add test for duplicate tile store
|
2014-04-04 00:34:54 +02:00 |
|
andygup
|
93032774b8
|
Fixes issue #155
|
2014-04-03 12:23:09 -06:00 |
|
andygup
|
0d1baa2422
|
added error handling to estimateTileSize()
|
2014-04-01 15:15:57 -06:00 |
|
andygup
|
fd91127b2d
|
added assert statement to detect if img is undefined
|
2014-03-31 18:09:35 -06:00 |
|
andygup
|
b9b5b550ce
|
removed getTileUrl() call
|
2014-03-31 17:34:12 -06:00 |
|
andygup
|
154bfb115c
|
tweaked and renamed getTileUrls to getTileUrlsByExtent to prevent confusion with getTileUrl override
|
2014-03-30 17:31:00 -06:00 |
|
andygup
|
b02cfdfc8a
|
fixed minor bugs in new helper methods
|
2014-03-30 17:01:15 -06:00 |
|
andygup
|
bf86761554
|
added getExtentBuffer and getTileUrls to offlineTileEnabler
|
2014-03-30 16:46:09 -06:00 |
|
andygup
|
b8093738fc
|
fixed broken license link
|
2014-03-12 01:29:46 -06:00 |
|
andygup
|
e5b83c7cf7
|
Added link to the MIT license
|
2014-03-12 01:16:40 -06:00 |
|
andygup
|
3fe404f429
|
added MIT license and readme for FileSaver.js
|
2014-03-12 01:11:40 -06:00 |
|
andygup
|
1bb25d8c69
|
Removing existing attachments code.
|
2014-03-08 17:43:59 -07:00 |
|
Andy
|
4e433ed575
|
Merge pull request #130 from jabadia/jabadia-smaller-font
smaller font
|
2014-03-02 10:11:30 -07:00 |
|
Javier Abadia
|
04e82eb8d3
|
smaller font
|
2014-03-02 18:03:35 +01:00 |
|
Javier Abadia
|
2e766176b0
|
Convert offlineTileEnabler to a Class
closes #124
|
2014-03-02 17:50:53 +01:00 |
|