import type { IFeature, IFeatureSet, IPoint, IPolyline, IPolygon } from "@arcgis/charts-components/spec/rest-js-types.js";Type definitions
IFeature
a spatial entity and its corresponding properties
IFeature can also be imported from the following packages:
import { IFeature } from "@esri/arcgis-rest-feature-layer";import { IFeature } from "@esri/arcgis-rest-routing"; IFeatureSet
IFeatureSet can also be imported from the following packages:
import { IFeatureSet } from "@esri/arcgis-rest-feature-layer";- Supertypes
- IHasZM
features
- Type
- IFeature[]
IPoint
A simple point geometry, with spatial reference defined.
IPoint can also be imported from the following packages:
import { IPoint } from "@esri/arcgis-rest-routing";import { IPoint } from "@esri/arcgis-rest-geocoding"; x
- Type
- number
y
- Type
- number
IEnvelope
An envelope is a rectangle defined by a range of values for each coordinate and attribute.
- Supertypes
- IGeometry
xmin
- Type
- number
xmax
- Type
- number
ymin
- Type
- number
ymax
- Type
- number
GeometryType
GeometryType can also be imported from the following packages:
import { GeometryType } from "@esri/arcgis-rest-feature-layer";- Type
- "esriGeometryEnvelope" | "esriGeometryMultipoint" | "esriGeometryPoint" | "esriGeometryPolygon" | "esriGeometryPolyline"
SpatialRelationship
The spatial relationship used to compare input geometries
SpatialRelationship can also be imported from the following packages:
import { SpatialRelationship } from "@esri/arcgis-rest-feature-layer";- Type
- "esriSpatialRelContains" | "esriSpatialRelCrosses" | "esriSpatialRelEnvelopeIntersects" | "esriSpatialRelIndexIntersects" | "esriSpatialRelIntersects" | "esriSpatialRelOverlaps" | "esriSpatialRelTouches" | "esriSpatialRelWithin"
IExtent
Extents are used to define rectangles and bounding boxes.
IExtent can also be imported from the following packages:
import { IExtent } from "@esri/arcgis-rest-geocoding";import { IExtent } from "@esri/arcgis-rest-service-admin";import { IExtent } from "@esri/arcgis-rest-feature-layer"; xmin
- Type
- number
ymin
- Type
- number
xmax
- Type
- number
ymax
- Type
- number
spatialReference
- Type
- ISpatialReference | undefined
Units
Units can also be imported from the following packages:
import { Units } from "@esri/arcgis-rest-feature-layer";- Type
- "esriSRUnit_Foot" | "esriSRUnit_Kilometer" | "esriSRUnit_Meter" | "esriSRUnit_NauticalMile" | "esriSRUnit_StatuteMile" | "esriSRUnit_USNauticalMile"
IViewServiceSource
name
- Type
- string
type
- Type
- string
url
- Type
- string
serviceItemId
- Type
- string
IStatisticDefinition
outStatisticFieldName
Field name for the returned statistic field.
If outStatisticFieldName is empty or missing, the server will assign one. A valid field name can only contain alphanumeric characters and an underscore.
If outStatisticFieldName is a reserved keyword of the underlying DBMS, the operation can fail. Try specifying an alternative outStatisticFieldName.
IFont
style
- Type
- "italic" | "normal" | "oblique" | undefined
weight
- Type
- "bold" | "bolder" | "lighter" | "normal" | undefined
decoration
- Type
- "line-through" | "none" | "underline" | undefined
SimpleMarkerSymbolStyle
- Type
- "esriSMSCircle" | "esriSMSCross" | "esriSMSDiamond" | "esriSMSSquare" | "esriSMSTriangle" | "esriSMSX"
SimpleLineSymbolStyle
- Type
- "esriSLSDash" | "esriSLSDashDot" | "esriSLSDashDotDot" | "esriSLSDot" | "esriSLSNull" | "esriSLSSolid"
SimpleFillSymbolStyle
- Type
- "esriSFSBackwardDiagonal" | "esriSFSCross" | "esriSFSDiagonalCross" | "esriSFSForwardDiagonal" | "esriSFSHorizontal" | "esriSFSNull" | "esriSFSSolid" | "esriSFSVertical"
SymbolType
- Type
- "esriPFS" | "esriPMS" | "esriSFS" | "esriSLS" | "esriSMS" | "esriTS"
ISimpleFillSymbol
- Supertypes
- ISymbol
style
- Type
- SimpleFillSymbolStyle | undefined
outline
- Type
- ISimpleLineSymbol | undefined
ISimpleLineSymbol
- Supertypes
- ISymbol
style
- Type
- SimpleLineSymbolStyle | undefined
ISimpleMarkerSymbol
- Supertypes
- IMarkerSymbol
style
- Type
- SimpleMarkerSymbolStyle | undefined
outline
- Type
- ISimpleLineSymbol | undefined
ITextSymbol
- Supertypes
- IMarkerSymbol
verticalAlignment
- Type
- "baseline" | "bottom" | "middle" | "top" | undefined
horizontalAlignment
- Type
- "center" | "justify" | "left" | "right" | undefined
IField
Contains information about an attribute field.
IField can also be imported from the following packages:
import { IField } from "@esri/arcgis-rest-feature-layer"; IImageServiceLayer
- Supertypes
- ILayer ‚ ISupportsTime
format
- Type
- "bmp" | "gif" | "jpg" | "jpgpng" | "png" | "png8" | "png24" | "png32" | "tiff" | undefined
String value representing image format.
interpolation
- Type
- "RSP_BilinearInterpolation" | "RSP_CubicConvolution" | "RSP_Majority" | "RSP_NearestNeighbor" | undefined
The algorithm used for interpolation.
layerDefinition
- Type
- ILayerDefinition | undefined
A layerDefinition object defining the attribute schema and drawing information for the layer.
noDataInterpretation
- Type
- "esriNoDataMatchAll" | "esriNoDataMatchAny" | undefined
A string value of interpretation of noData setting. Default is 'esriNoDataMatchAny' when noData is a number, and 'esriNoDataMatchAll' when noData is an array.
pixelType
- Type
- "C64" | "C128" | "F32" | "F64" | "S8" | "S16" | "S32" | "U1" | "U2" | "U4" | "U8" | "U16" | "U32" | "UNKNOWN" | undefined
Pertains to the type of values stored in the raster, such as signed integer, unsigned integer, or floating point.
popupInfo
- Type
- IPopupInfo | undefined
A popupInfo object defining the content of popup windows when you click or query a feature.
IDefinitionParameter
type
- Type
- "esriFieldTypeBlob" | "esriFieldTypeDate" | "esriFieldTypeDateOnly" | "esriFieldTypeDouble" | "esriFieldTypeGeometry" | "esriFieldTypeGlobalID" | "esriFieldTypeGUID" | "esriFieldTypeInteger" | "esriFieldTypeOID" | "esriFieldTypeRaster" | "esriFieldTypeSingle" | "esriFieldTypeSmallInteger" | "esriFieldTypeString" | "esriFieldTypeTimeOnly" | "esriFieldTypeTimestampOffset" | "esriFieldTypeXML" | undefined
The field type for the specified field parameter.
ILayerDefinition
ILayerDefinition can also be imported from the following packages:
import { ILayerDefinition } from "@esri/arcgis-rest-service-admin";import { ILayerDefinition } from "@esri/arcgis-rest-feature-layer";- Supertypes
- IHasZM
editingInfo
- Type
- IEditingInfo | undefined
An object defining the editing info (last edit date).
geometryType
- Type
- GeometryType | undefined
A string defining the type of geometry. Possible geometry types are: esriGeometryPoint, esriGeometryMultipoint, esriGeometryPolyline, esriGeometryPolygon, and esriGeometryEnvelope.
htmlPopupType
- Type
- "esriServerHTMLPopupTypeAsHTMLText" | "esriServerHTMLPopupTypeAsURL" | "esriServerHTMLPopupTypeNone" | undefined
String value indicating the HTML popup type.
spatialReference
- Type
- ISpatialReference | undefined
An object containing the WKID or WKT identifying the spatial reference of the layer's geometry.
type
- Type
- "Feature Layer" | "Table" | undefined
Indicates whether the layerDefinition applies to a Feature Layer or a Table.
advancedQueryCapabilities
- Type
- { supportsPagination?: boolean; supportsTrueCurve?: boolean; supportsQueryWithDistance?: boolean; supportsReturningQueryExtent?: boolean; supportsStatistics?: boolean; supportsOrderBy?: boolean; supportsDistinct?: boolean; supportsSqlExpression?: boolean; supportsPercentileStatistics?: boolean; } | undefined
FeatureEditTool
- Type
- "esriFeatureEditToolAutoCompletePolygon" | "esriFeatureEditToolCircle" | "esriFeatureEditToolDownArrow" | "esriFeatureEditToolEllipse" | "esriFeatureEditToolFreehand" | "esriFeatureEditToolLeftArrow" | "esriFeatureEditToolLine" | "esriFeatureEditToolNone" | "esriFeatureEditToolPoint" | "esriFeatureEditToolPolygon" | "esriFeatureEditToolRectangle" | "esriFeatureEditToolRightArrow" | "esriFeatureEditToolText" | "esriFeatureEditToolTriangle" | "esriFeatureEditToolUpArrow"
ITemplate
Templates describe features that can be created in a layer. They are generally used with feature collections and editable web-based CSV layers.
Templates are not used with ArcGIS feature services as these already have templates defined in the service.
They are also defined as properties of the layer definition when there are no defined types. Otherwise, templates are defined as properties of the types.
drawingTool
- Type
- FeatureEditTool | undefined
An optional string that can define a client-side drawing tool to be used with this feature. For example, map notes used by the Online Map Viewer use this to represent the viewer's different drawing tools.
IFeatureLayer
Feature layers can be created by referencing a layer from either a map service or a feature service or by specifying a feature collection object. Use a map service if you just want to retrieve geometries and attributes from the server and symbolize them yourself. Use a feature service if you want to take advantage of symbols from the service's source map document. Also, use a feature service if you plan on doing editing with the feature layer. Feature layers honor any feature templates configured in the source map document. Feature collection objects are used to create a feature layer based on the supplied definition.
- Supertypes
- ILayer ‚ ISupportsTime
disablePopup
- Type
- true | undefined
Indicates whether to allow a client to ignore popups defined by the service item.
featureCollectionType
- Type
- "markup" | "notes" | "route" | undefined
Indicates the type of features in the feature collection. If featureCollectionType is missing, it means the feature collection is a regular single-layer or multi-layer feature collection.
layerDefinition
- Type
- ILayerDefinition | undefined
A layerDefinition object defining the attribute schema and drawing information for the layer.
mode
- Type
- 0 | 1 | 2 | undefined
0 is snapshot mode. 1 is on-demand mode. 2 is selection-only mode. Used with ArcGIS feature services and individual layers in ArcGIS map services.
popupInfo
- Type
- IPopupInfo | undefined
A popupInfo object defining the content of popup windows when you click or query a feature.
showLabels
- Type
- true | undefined
Labels will display if this property is set to true and the layer also has a labelingInfo property associated with it. This property can get stored in the web map config and in the item/data.