import type { FieldType, FieldValueType, FieldFormatUnion, DomainUnion, ControlPoints } from "@arcgis/core/layers/support/types.js";Type definitions
FieldType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Supported field types.
- Type
- "small-integer" | "integer" | "single" | "double" | "long" | "string" | "date" | "oid" | "geometry" | "blob" | "raster" | "guid" | "global-id" | "xml" | "big-integer" | "date-only" | "time-only" | "timestamp-offset"
FieldValueType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Supported field value types.
- Type
- "binary" | "coordinate" | "count-or-amount" | "currency" | "date-and-time" | "description" | "email-address" | "location-or-place-name" | "measurement" | "name-or-title" | "none" | "ordered-or-ranked" | "percentage-or-ratio" | "phone-number" | "type-or-category" | "unique-identifier"
FieldFormatUnion
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Supported field formatting types.
DomainUnion
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Supported domain types. Domains are used to constrain allowable values of a layer.
- Type
- RangeDomain | CodedValueDomain | InheritedDomain
ControlPoints
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Control points used for image-to-map transformations.
PointPlacement
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Supported point label placement types.
- Type
- "above-center" | "above-left" | "above-right" | "center-center" | "center-left" | "center-right" | "below-center" | "below-left" | "below-right"
PolylinePlacement
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Supported polyline label placement types.
- Type
- "above-along" | "below-along" | "center-along"
PolygonPlacement
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Supported polygon label placement types.
- Type
- "always-horizontal"
PlacementType3D
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Supported 3D label placement types.
- Type
- "above-center" | "above-left" | "above-right" | "center-center" | "center-left" | "center-right" | "below-center" | "below-left" | "below-right"
SublayerCapabilities
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Describes supported capabilities for a sublayer.
SublayerCapabilitiesAttachment
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Describes attachment-related capabilities for a sublayer.
SublayerCapabilitiesData
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Describes data-related capabilities for a sublayer.
supportsAttachment
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates if attachments are enabled on the layer.
SublayerCapabilitiesOperations
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Describes operation-related capabilities for a sublayer.
supportsQueryAttachments
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates if the layer supports
REST API queryAttachments
operation.
If false, queryAttachments() method can only return attachments for one feature at a time.
If true, queryAttachments() can return attachments for array of AttachmentQuery.objectIds.
SublayerCapabilitiesQueryRelated
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Query-related capabilities for a sublayer.
- Supertypes
- Omit<QueryRelatedCapabilities‚ "supportsCacheHint">
I3SGeometryType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Supported I3S geometry types.
- Type
- "point" | "mesh"
SceneServiceVersion
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The version information for a scene service.
major
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The major version of the scene layer.
minor
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The minor version of the scene layer.
versionString
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The complete version string of the scene layer.
SpriteInfo
- Since
- ArcGIS Maps SDK for JavaScript 4.25
A description of each image contained in the sprite. It describes the dimension and pixel ratio of each image and its location within the sprite image. This information is saved in the JSON index file containing description of each image.
x
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The x position of the upper-left corner of the sprite.
y
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The y position of the upper-left corner of the sprite.
Image
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Image containing sprite data when setting sprite source VectorTileLayer via its setSpriteSource().
- Type
- HTMLImageElement | HTMLCanvasElement | ImageBitmap | ImageData | ImageObject
ImageObject
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Defines an image object that can be used when setting SpriteSourceImageInfo.
data
- Type
- ArrayBuffer
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The image data for the sprite.
SpriteSourceUrlInfo
- Since
- ArcGIS Maps SDK for JavaScript 4.25
The URL of the sprite source to be fetched when the VectorTileLayer.setSpriteSource() method is called.
spriteFormat
- Type
- "png" | "webp" | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The sprite image format.
- Example
- // update the layer's sprite resources by fetching sprite resources// from the given urlconst spriteUrl = "link-to-your-sprite-source";vtLayer.setSpriteSource({type: "url",spriteUrl,pixelRatio: window.devicePixelRatio}).then((results)=>{console.log("setSpriteSource results", results);// do additional style updates here// change the background layer's spriteconst sl = vtLayer.getStyleLayer("background");sl.paint["background-pattern"] =sl.paint["background-pattern"] === "Polygon" ? "Waves" : "Polygon";vtLayer.setStyleLayer(sl);});
SpriteSourceImageInfo
- Since
- ArcGIS Maps SDK for JavaScript 4.25
Defines sprite source from an image and index json when the VectorTileLayer.setSpriteSource() method is called.
- Example
- // set sprites source from an image info directly on the layerfetchSprites(spriteUrl, pixelRatio).then((params) => {vtLayer.setSpriteSource(params).then((results)=>{console.log("setSpriteInfo results", results);const sl = vtLayer.getStyleLayer("background");sl.paint["background-pattern"] =sl.paint["background-pattern"] === "Polygon" ? "Waves" : "Polygon";vtLayer.setStyleLayer(sl);});});async function fetchSprites(url, pixelRatio) {// get the index and image files from specified locationconst jsonUrl = `${url}${pixelRatio > 1.25 ? "@2x" : ""}.json`;const imageUrl = `${url}${pixelRatio > 1.25 ? "@2x" : ""}.png`;const [jsonResult, imageResult] = await Promise.all([esriRequest(jsonUrl, { responseType: "json" }),esriRequest(imageUrl, { responseType: "image" })]);// load the appropriate files depending on device pixel ratioconst spriteSource = `spriteSource${pixelRatio > 1.25 ? "2" : "1"}x`;return new SpriteSourceImageInfo({type: "image",[spriteSource]: {image: imageResult.data,json: jsonResult.data},spriteUrl: url});}
SpriteSourceImageInfoSpriteSource1x
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Image containing sprite data for non high-DPI devices when setting sprite source VectorTileLayer via its setSpriteSource().
image
- Type
- Image
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Image containing sprite data for non high-DPI devices.
json
- Type
- Record<string, SpriteInfo | undefined>
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The JSON representation of an index file containing a description of each image in the sprite for non high-DPI devices.
SpriteSourceImageInfoSpriteSource2x
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Image containing sprite data for high-DPI devices when setting sprite source VectorTileLayer via its setSpriteSource().
image
- Type
- Image
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Image containing sprite data for high-DPI devices.
json
- Type
- Record<string, SpriteInfo | undefined>
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The JSON representation of an index file containing a description of each image in the sprite for high-DPI devices.
SpriteSourceInfo
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The sprite source info is used to set the sprites in the VectorTileLayer's currentStyleInfo.style. The user can set the sprite source from a URL to fetch the sprite resources or from the image info to set the sprite resources directly on the layer.
StreamConnectionStatus
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The status of the Web Socket connection with the stream service. This property can be watched to see if the connection is lost unexpectedly.
- Type
- "disconnected" | "connected"
BaseCapabilities
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Base editing capability flags.
enabled
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether a specific operation or capability is enabled on the editable layer.
OwnerAdminCapabilities
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Editing capabilities that account for owner/admin privileges.
- Supertypes
- BaseCapabilities
reliesOnOwnerAdminPrivileges
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates when editing is enabled and is only due to administrative permissions. It returns false for any users if editing is generally enabled.
CreateCapabilities
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Specific permissions for create operations. It takes into account the Editor's layerInfo settings.
- Supertypes
- OwnerAdminCapabilities
attributes
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether attributes can be created on the editable layer.
geometry
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether a geometry can be created on the editable layer.
UpdateCapabilities
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Specific permissions for update operations. It takes into account the Editor's layerInfo settings.
- Supertypes
- OwnerAdminCapabilities
attributes
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether attributes can be updated on the editable layer.
geometry
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether a geometry can be updated on the editable layer.
DeleteCapabilities
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Specific permissions for delete operations. It takes into account the Editor's layerInfo settings.
- Supertypes
- OwnerAdminCapabilities
AttachmentCapabilities
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The editing capabilities for attachments.
- Supertypes
- BaseCapabilities
UpdateAttachmentCapabilities
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Capabilities for updating attachments.
- Supertypes
- AttachmentCapabilities
RelationshipCapabilities
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Specific permissions for relationship operations. It takes into account the Editor's layerInfo settings.
- Supertypes
- BaseCapabilities
ExifInfo
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An array of Exchangeable image file format information
for the attachment. You must set the attachment query's AttachmentQuery.returnMetadata to true to get the exif
info associated with the attachment.
ExifTag
- Since
- ArcGIS Maps SDK for JavaScript 5.0
A tag describing an EXIF metadata value.
ParquetGeometryEncodingUnion
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Supported Parquet geometry encoding types.
CreateElevationSamplerOptions
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Options for creating an elevation sampler.
- Supertypes
- AbortOptions
demResolution
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Controls the horizontal resolution (cell size) in meters
from which elevation data is sampled (defaults to auto). See the table below for more details on the different
settings.
| demResolution | Description |
|---|---|
auto | Automatically chooses an appropriate resolution for each coordinate of the input geometry. The current implementation will try to use the finest available resolution given that the total required number of tile requests does not exceed a certain maximum amount (currently 20). Note that this may result in values being sampled from different resolutions. |
finest-contiguous | Sample elevation from the finest available resolution (cell size) across the entire geometry. |
{number} | Sample elevation from the resolution closest to the specified resolution (in meters). |
- Default value
- auto
ElevationQueryOptions
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Options for querying elevation.
- Supertypes
- CreateElevationSamplerOptions
ElevationQueryDemResolution
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Resolution options for elevation queries.
- Type
- number | "finest-contiguous" | "auto"
ElevationQueryGeometry
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Supported geometries to query elevation for.
- Type
- Point | Multipoint | Polyline
ElevationQueryResult
- Type parameters
- <GeometryType>
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Object returned when ElevationLayer.queryElevation(), Ground.queryElevation(), or Ground.queryElevation() promise resolves:
sampleInfo
- Type
- ElevationQuerySampleInfo[] | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Contains additional information about how the geometry was sampled.
This property is present depending on whether the user set options.returnSampleInfo = true,
for each coordinate in the geometry.
ElevationQuerySampleInfo
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Sampling metadata returned with elevation query results.
demResolution
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The resolution at which the z-value was sampled. If no data was available for sampling for a given coordinate, the dem resolution value will be -1 for that coordinate.
source
- Type
- GroundLayerUnion | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The elevation source from which the data for the corresponding coordinate was sampled.
ElevationTileData
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Describes elevation contained in the pixels that comprise an elevation tile.
values
- Type
- ArrayLike<number>
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The elevation values of each pixel in the tile.
width
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The width of the tile in pixels.
height
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The height of the tile in pixels.
noDataValue
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicating the pixel values where no elevation data is present.