Feature layer query, edit and admin helpers for ArcGIS REST JS.
Node.js
To use ArcGIS REST JS in a backend or Node.js application, first install the package using your preferred package manager, such as NPM or Yarn.
npm install @esri/arcgis-rest-feature-serviceOnce installed, you can import or require modules depending on your Node setup.
ES modules
import { queryAllFeatures } from "@esri/arcgis-rest-feature-service"CommonJS
const queryAllFeatures = require("@esri/arcgis-rest-feature-service");CDN
You can load ArcGIS REST JS directly in the browser using CDN with a global object or with an import map.
Global object
<script src="https://unpkg.com/@esri/arcgis-rest-feature-service@4.4.1/dist/bundled/feature-service.umd.js"
integrity="sha512-UihYAWjkAyH6HleVgrPpK08MTCJ1mtfGxGMMpgftdwSXwZgmTEJAog33JqZZOtvtK+7R8wWybwu2rfZiwD9BLA==">
</script>
<script>
import { queryAllFeatures } from "@esri/arcgis-rest-feature-service";
</script>Import map
<script type="importmap">
{
"imports": {
"@esri/arcgis-rest-feature-service": "https://esm.run/@esri/arcgis-rest-feature-service@4.4.1"
}
}
</script>
<script type="module">
import { queryAllFeatures } from "@esri/arcgis-rest-feature-service";
</script>Exports
- addAttachment
- addFeatures
- addToServiceDefinition
- applyEdits
- createFeatureService
- decodeValues
- deleteAttachments
- deleteFeatures
- getAllLayersAndTables
- getAttachments
- getFeature
- getLayer
- getService
- getServiceAdminInfo
- getViewSources
- parseServiceUrl
- queryAllFeatures
- queryFeatures
- queryRelated
- updateAttachment
- updateFeatures
- updateServiceDefinition
- IAddAttachmentOptions
- IAddFeaturesOptions
- IAddToServiceDefinitionItemSummary
- IAddToServiceDefinitionOptions
- IAddToServiceDefinitionResult
- IAllLayersAndTablesResponse
- IApplyEditsAddAttachmentOptions
- IApplyEditsAttachmentResult
- IApplyEditsOptions
- IApplyEditsResult
- IApplyEditsUpdateAttachmentOptions
- IAttachmentInfo
- ICreateServiceOptions
- ICreateServiceParams
- ICreateServiceResult
- IDecodeValuesOptions
- IDefinitionEditor
- IDefinitionInput
- IDefinitionParameter
- IDeleteAttachmentsOptions
- IDeleteFeaturesOptions
- IEditFeatureResult
- IEditingInfo
- IExtent
- IFeature
- IFeatureServiceDefinition
- IFeatureSet
- IField
- IFieldFormat
- IFieldInfo
- IGeometry
- IGetAttachmentsOptions
- IGetFeatureOptions
- IGetLayerOptions
- IHasZM
- ILayer
- ILayerDefinition
- IMediaInfo
- IMediaInfoValue
- IOrderByField
- IPopupElement
- IPopupExpressionInfo
- IPopupInfo
- IQueryAllFeaturesOptions
- IQueryAllFeaturesResponse
- IQueryFeaturesOptions
- IQueryFeaturesResponse
- IQueryRelatedOptions
- IQueryRelatedResponse
- IQueryResponse
- IRelatedRecordGroup
- IRelatedRecordsInfo
- IServiceInfo
- ISharedEditOptions
- ISharedQueryOptions
- ISpatialReference
- IStatisticDefinition
- ITable
- ITemplate
- IUpdateAttachmentOptions
- IUpdateFeaturesOptions
- IUpdateServiceDefinitionOptions
- IUpdateServiceDefinitionResult
- IViewServiceSource
- IViewServiceSources
- FeatureEditTool
- GeometryType
- SpatialRelationship
- Units