Coder Social home page Coder Social logo

esri / offline-editor-js Goto Github PK

View Code? Open in Web Editor NEW
159.0 60.0 142.0 24.31 MB

ArcGIS JavaScript library for handling offline editing and tiling.

Home Page: http://esri.github.io/offline-editor-js/demo/

License: Apache License 2.0

HTML 9.61% JavaScript 89.93% Shell 0.46%

offline-editor-js's People

Contributors

andygup avatar bryant1410 avatar driskull avatar jabadia avatar nixta avatar robkspeer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

offline-editor-js's Issues

enhance phantom layer

  • need to use better looking symbols
  • need to make the phantom layer transparent to mouse events (this is proving to be difficult)

PhoneGap support

Create a sample that demonstrates this library working with PhoneGap/Cordova.

Index not updating correctly

Sometimes it writes duplicate information, sometimes is doesn't represent an add, update or delete that has definitely occured.

add submodule for jasmine

Javier, I changed my mind. I agree with you that we should add this as a submodule. After thinking about it for a bit, I actually like the web interface better than the node "pure text" terminal view.

OfflineStore needs to work with attribute inspector

Need to dynamically determine which fields are available and configure the attribute inspector to use them. We'll probably need some sort of configuration file or preconfigured object that specifies which fields we want to not display. Default will be to display all fields in the attribute inspector.

Caveat: library won't be able to create new attributes that don't already exist on the server.

Ability to write csv containing tile info to indexedDB

The tile library has ability to allow user to download a csv file containing the cut tiles. This issue is for building the functionality to allow the reverse, which is programmatically reading the CSV-based tiles and allowing them to be read back into indexedDB.

This provides a mechanism to make the tiles portable amongst different machines and devices.

Remove or highlight graphic that has been deleted while offline

There needs to be a way to indicate that a graphic (point, line or polygon) has be created or deleted while offline. This will allow someone, at a glance, to determine was has been done. This could be as simple as changing the color, or adding some sort of icon to the graphic.

And/or there needs to be a table of edits that is updated as adds, updates, deletes occur.

indexedDBShim not allowing proper debugging in Firefox 27

Firefox debugger console doesn't seem like the shim. We need to be able to debug in Firefox. I haven't looked at this in detail, however app fails because of numerous errors such as:

setting a property that has only a getter Line 2
'onreadystatechange' getter called on an object that does not implement interface XMLHttpRequest. Line 2
'readyState' getter called on an object that does not implement interface XMLHttpRequest. Line 2
'timeout' getter called on an object that does not implement interface XMLHttpRequest. Line 2

Create an app to demonstrate offline editing

The existing index.html app isn't very pretty although it does demonstrate add and delete for points, lines and polygons.

Maybe with some cleanup and removal off all the testing functionality it could become the demonstration app.

Offline Edit tests that connect to ArcGIS Server are throwing 400 errors

The graphics created in edit-basic.html are 'not' well formed and are causing sync failures with their respective feature services. Furthermore, the tests are showing these requests as completing successfully.

Here's example of a correctly working "adds":

[{"geometry":{"rings":[[[-9266233.729308194,5247884.508472704],[-9265798.993709812,5247454.550188589],[-9266458.263078788,5247444.995560053],[-9266458.263078788,5247444.995560053],[-9266233.729308194,5247884.508472704]]],"spatialReference":{"wkid":102100}},"attributes":{"ruleid":2,"name":null,"__hydrate_id":"0"}}]

Here's an adds that is obviously being messed up by the serializer:

[{"geometry":{"rings":[[[-115.312,37.96875],[-111.4453125,37.96875],[-99.84375,36.2109375],[-99.84375,23.90625],[-116.015625,24.609375],[-115.3125,37.96875]]],"spatialReference":{"wkid":102100}},"attributes":{"0":"","1":"","2":"h","3":"y","4":"d","5":"r","6":"a","7":"t","8":"e","9":"","10":"r","11":"e","12":"f","13":"","14":"0"}}]

Problem in tile samples with accessing the webmap id

XMLHttpRequest cannot load http://www.arcgis.com/sharing/rest/content/items/f58996878ac24702afef792e52a07e55/data?f=json. The 'Access-Control-Allow-Origin' whitelists only 'http://esri.github.io'. Origin 'http://localhost' is not in the list, and is therefore not allowed access.

GET http://www.arcgis.com/sharing/rest/content/items/f58996878ac24702afef792e52a07e55/data?f=json
304 Not Modified
94ms
3.7compact (line 157)
RequestError: Unable to load http://www.arcgis.com/sharing/rest/content/items/f58996878ac24702afef792e52a07e55/data?f=json status: 0
The resource from this URL is not text: http://js.arcgis.com/3.7compact

capability to reload the app while offline

need to:

  • cache the application files (html, css, js...) (using HTML5 manifest)
  • store the original feature layers offline (on user's request)
  • when loading the app, detect whether we are offline and load the feature layers from local storage

Randomly not detecting offline conditions correctly in Firefox - UX fails silently

I've been able to reproduce this condition.

  • Browser is taken offline
  • Library does not properly detect condition
  • Offline indicator in military-offline.html app continues to show an online condition
  • Edits fail silently

An error is properly returned in line 54 of offlineFeaturesManager.js. However, I'm not sure where we can properly capture this error in the TemplatePicker?

image
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.