Feature layer query, edit and admin helpers for ArcGIS REST JS.
Install
npm install @esri/arcgis-rest-feature-service
Import
@esri/arcgis-rest-feature-service
is distributed as both ES Modules and Common JS modules.
import * as featureServiceTools from "@esri/arcgis-rest-feature-service"
const featureServiceTools = require("@esri/arcgis-rest-feature-service");
CDN
You can use @esri/arcgis-rest-feature-service
as an ES Module from the esm.run CDN.
<script type="module">
import * as featureServiceTools from "https://esm.run/@esri/arcgis-rest-feature-service@4.1.0";
</script>
You can also use @esri/arcgis-rest-feature-service
from a script tag. All exports will be added to a global arcgisRest
object.
<script
src="https://unpkg.com/@esri/arcgis-rest-feature-service@4.1.0/dist/bundled/feature-server.umd.js"
integrity="sha512-xqgDjNvp3Qiq+tpI5XmO6Qm4DPDNT7cux8bWcDSzZ9kzv5W6qi2UzJMg9FCmTQScZQyc1l/AkHbf3l3+fu4k/Q==">
</script>
Exports
- addAttachment
- addFeatures
- addToServiceDefinition
- applyEdits
- createFeatureService
- decodeValues
- deleteAttachments
- deleteFeatures
- getAllLayersAndTables
- getAttachments
- getFeature
- getLayer
- getService
- getServiceAdminInfo
- getViewSources
- parseServiceUrl
- 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
- IQueryFeaturesOptions
- IQueryFeaturesResponse
- IQueryRelatedOptions
- IQueryRelatedResponse
- IQueryResponse
- IRelatedRecordGroup
- IRelatedRecordsInfo
- IServiceInfo
- ISharedEditOptions
- ISharedQueryOptions
- ISpatialReference
- IStatisticDefinition
- ITable
- ITemplate
- IUpdateAttachmentOptions
- IUpdateFeaturesOptions
- IUpdateServiceDefinitionOptions
- IUpdateServiceDefinitionResult
- IViewServiceSource
- IViewServiceSources
- FeatureEditTool
- GeometryType
- SpatialRelationship
- Units