How to use the @esri/arcgis-rest-feature-layer.addFeatures function in @esri/arcgis-rest-feature-layer

To help you get started, we’ve selected a few @esri/arcgis-rest-feature-layer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Esri / solution.js / packages / simple-types / src / workforce.ts View on Github external
(results: any) => {
          if (results && results.features) {
            if (results.features.length === 0) {
              addFeatures({
                url: dispatchers.url,
                features: [
                  {
                    attributes: {
                      name: fullName,
                      userId: name
                    }
                  }
                ],
                authentication: destinationAuthentication
              }).then(
                addResults => {
                  if (addResults && addResults.addResults) {
                    resolve(true);
                  } else {
                    reject(

@esri/arcgis-rest-feature-layer

Feature layer query and edit helpers for @esri/arcgis-rest-js

Apache-2.0
Latest version published 1 year ago

Package Health Score

73 / 100
Full package analysis