From 346a77a040702f69be5cd8cff9b5899ca9d17227 Mon Sep 17 00:00:00 2001 From: andygup Date: Fri, 27 Sep 2013 16:53:22 -0600 Subject: [PATCH 1/8] gh-pages 1st commit --- index.html | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 index.html diff --git a/index.html b/index.html new file mode 100644 index 0000000..c62ca18 --- /dev/null +++ b/index.html @@ -0,0 +1,91 @@ + + + + Offline Editing with the ArcGIS API for JavaScript + + + + + + +Fork me on GitHub +

ArcGIS Offline Editing Library for JavaScript

+

This is an experimental library for exploring offline editing use cases and workflows when using ArcGIS Feature Services. + It is currently designed as a stand-alone library so it will work with or without the ArcGIS API for JavaScript and no +modifications will be needed. This is important if you built an application to work directly with the ArcGIS REST API.

+

Why edit offline with JavaScript?

+

Many "in the field" use cases for mapping apps require that workers go into areas with limited, intermittent or no cellular network connectivity. + Until now, offline has been limited to native SDKs on smartphones and tablets. This library will hopefully lead the way in changing +that perception.

+

What types of features will it work with?

+

The library currently works with esri.geometry.Geometry.Point, Polygon and Polyline.

+

How does it work?

+

It takes the place of the existing esri.layers.FeatureLayer.applyEdit() function. When an edit is being submitted, the library automatically detects if the app is online or offline. +If the app is online then edits are simply passed through. If an offline condition occurs, then the library will start storing changes. +In the background it will re-check the internet connection on a regular basis. Once the internet is restored, the library will handle resubmitting +any editing changes made offline.

+

The library also contains a built-in indexing system that allows for tracking and validation of edits. The index keeps track of whether or not +and edit was successfully transmitted and received by the Feature Service.

+ +

+    //Instantiate the OfflineStore library and pass it a reference to the map.
+    offlineStore = new OfflineStore(map);
+
+    //To delete a feature listen for control-click event on the layer
+    pointFeatureLayer.on("click", function(evt) {
+        event.stop(evt);
+        if (evt.ctrlKey === true || evt.metaKey === true) {
+            try{
+                offlineStore.applyEdits(evt.graphic,pointFeatureLayer,offlineStore.enum().DELETE);
+            }
+            catch(err){
+                console.log("error " + err.stack);
+            }
+        }
+    });
+
+ +

What platforms will it work on?

+

Currently it's only been thoroughly tested on Firefox v23. Firefox has a built-in offline capability that is extremely easy to use. +However, there are other 3rd party offline plugins for Chrome, etc. that need to be tried out.

+ +We are always looking to make our projects the best they can possibly be. You can help immensely by providing any and all feedback related to the libraries functionality +bugs, and documentation. +
+
+ \ No newline at end of file From af913859f25a67989219aa56a6bf5d8d5e8e1d12 Mon Sep 17 00:00:00 2001 From: andygup Date: Fri, 27 Sep 2013 17:12:22 -0600 Subject: [PATCH 2/8] Minor changes to index.html --- index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index c62ca18..d4220e0 100644 --- a/index.html +++ b/index.html @@ -45,9 +45,8 @@ Fork me on GitHub

ArcGIS Offline Editing Library for JavaScript

-

This is an experimental library for exploring offline editing use cases and workflows when using ArcGIS Feature Services. - It is currently designed as a stand-alone library so it will work with or without the ArcGIS API for JavaScript and no -modifications will be needed. This is important if you built an application to work directly with the ArcGIS REST API.

+

This is an experimental library for exploring offline editing use cases and workflows when using ArcGIS Feature Services. Use it in conjunction +with the ArcGIS API for JavaScript.

Why edit offline with JavaScript?

Many "in the field" use cases for mapping apps require that workers go into areas with limited, intermittent or no cellular network connectivity. Until now, offline has been limited to native SDKs on smartphones and tablets. This library will hopefully lead the way in changing From 810ecd20a57da0d80cbb76dc02ab6610db201f0f Mon Sep 17 00:00:00 2001 From: andygup Date: Mon, 24 Feb 2014 11:51:35 -0700 Subject: [PATCH 3/8] initial commit gh-pages --- tiny-image.png | Bin 0 -> 1167 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tiny-image.png diff --git a/tiny-image.png b/tiny-image.png new file mode 100644 index 0000000000000000000000000000000000000000..60a85ccc95fde53445cf9e06cf47a0d7651cdedc GIT binary patch literal 1167 zcmV;A1aSL_P)4Tx05}naRo`#hR1`jmZ&IWdKOk5~hl<6oRa0BJ8yc;~21%2p?MfD<>DVeH z9(p*dx19w`~g7O0}n_%Aq@s%d)fBDv`JHkDym6Hd+5XuAtvnwRpGmK zVkc9?T=n|PIo~X-eVh__(Z?q}P9Z-Dj?gOW6|D%o20XmjW-qs4UjrD(li^iv8@eK9k+ZFm zVRFymFOPAzG5-%Pn|1W;U4vNroTa&AxDScmEA~{ri9gr1^c?U@uwSpaNnw8l_>cP1 zd;)kMQS_;jeRSUEM_*s96y65j1$)tOrwdK{YIQMt92l|D^(E_=$Rjw{b!QT@q!)ni zR`|5oW9X5n$Wv+HVc@|^eX5yXnsHX8PF3UX~a6)MwxDE0HaPjyrlI!;jX{6Kvuh*8ej?;85ekN$?5uuCiS zBTvvVG+XTxAO{m@bvM#Jr)z6J><&E22D|vq?Y?Vkbo_DijopiF$2PET#mZ8eu=y$(ArYkv7@Ex`GL?QCc!_*KFrd&;n1r7 zqW-CFs9&fT)ZaU5gc&=gBz-DaCw(vdOp0__x+47~U6sC(E(JNe@4cTT*n6*E zVH4eoU1-&7pEV~_PRe`a7v+@vy!^5}8?Y3)UmlaER0000cNklnKg hXc&?a0)s!<003p%0iH_P-;)3U002ovPDHLkV1l}QFmM0> literal 0 HcmV?d00001 From a7433f64cc0c1d2d6bbf507d4520b85c0dc1ba86 Mon Sep 17 00:00:00 2001 From: andygup Date: Mon, 24 Feb 2014 12:13:55 -0700 Subject: [PATCH 4/8] 1st pass at updating index.html --- index.html | 54 ++++++++++++++++++++---------------------------------- 1 file changed, 20 insertions(+), 34 deletions(-) diff --git a/index.html b/index.html index d4220e0..c0e7c75 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - Offline Editing with the ArcGIS API for JavaScript + Offline Editing and Mapping with the ArcGIS API for JavaScript