<commit_before># featureservice-esri-jsapi

**bower install featureservice-esri-jsapi**

Wrapper around esri REST API Feature Service allowing edits to multiple layers in a Feature Service in a single request with rollback on all if any edits fail (if supported by data source - see ESRI documentation).

License: MIT

```js
define(
  [
    'application/FeatureService'
  ], function(FeatureService) {
    'use strict';

    var service = new FeatureService("http://[server]/arcgis/rest/MyService");
    var edits = [
      {
        id: 2,
        adds: [
          new Graphic(new Point(0,0, WGS_84), null, {})
        ],
        updates: [
          new Graphic(new Point(0,0, WGS_84), null, {})
        ],
        deletes: [
          1, 2  // just objectids of features to delete.<commit_msg>add dojoconfig to readme<commit_after># featureservice-esri-jsapi

**bower install featureservice-esri-jsapi**

Wrapper around esri REST API Feature Service allowing edits to multiple layers in a Feature Service in a single request with rollback on all if any edits fail (if supported by data source - see ESRI documentation).

License: MIT

```js
var package_path = window.location.pathname.substring(0, window.location.pathname.lastIndexOf('/'));
var dojoConfig = {
  async: true,
  packages: [
    {
      name: 'feature-service',
      location: package_path + '/js/lib/bower_components/featureservice-esri-jsapi/dist',
      main: 'FeatureService.min'
    }
  ]
};

define(
  [
    'feature-service'
  ], function(FeatureService) {
    'use strict';

    var service = new FeatureService("http://[server]/arcgis/rest/MyService");
    var edits = [
      {
        id: 2,
        adds: [
          new Graphic(new Point(0,0, WGS_84), null, {})
        ],
        updates: [
          new Graphic(new Point(0,0, WGS_84), null, {})
        ],
        deletes: [
          1, 2  // just objectids of features to delete.
{'fraction_non_alphanumeric': 0.11476264997391758, 'fraction_numerical': 0.011997913406364111, 'mean_word_length': 2.7315175097276265, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5842906', 'n_tokens_mistral': 595, 'n_tokens_neox': 588, 'n_words': 174}