Skip to content
import TraceParameters from "@arcgis/core/rest/networks/support/TraceParameters.js";
Inheritance:
TraceParametersAccessor
Since
ArcGIS Maps SDK for JavaScript 4.20

The list of parameters that are needed to determine how the trace analytic will be executed. This includes trace locations, type, trace configurations, result types, output, and many other parameters.

See also

Constructors

Constructor

Constructor
Parameters
ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

The name of the class. The declared class name is formatted as esri.folder.className.

gdbVersion

Property
Type
string | null | undefined

The geodatabase version to execute the function against. Defaults to SDE.DEFAULT when no version is provided.

moment

autocast Property
Type
Date | null | undefined

The date/timestamp (in UTC) to execute the function at a given time. This could be used to run the function in a moment in the past or in long transaction mode (undo/redo). Applicable to branch versioned datasets only.

See also

namedTraceConfigurationGlobalId

Property
Type
string | null | undefined

The globalId (UUID) of the named trace configuration persisted in the network.

outSpatialReference

autocast Property
Type
SpatialReference | null | undefined

The spatial reference that should be used to project the aggregated geometries returned by the trace (if applicable).

resultTypes

Property
Type
ResultType[] | null | undefined

Parameter specifying the types of results to return after running a trace.

traceConfiguration

autocast Property
Type
UNTraceConfiguration | null | undefined

Defines the properties of a trace.

traceLocations

autocast Property
Type
TraceLocation[]

The list of starting points and barriers that will define where the trace starts and stops. This parameter can be optional (defaults to empty array) if NamedTraceConfiguration.minStartingPoints in NamedTraceConfiguration is set to none.

traceType

Property
Type
TraceType | null | undefined

The traceType defined in this trace configuration.

The path and circuit types are reserved for future use.

Methods

MethodSignatureClass
fromJSON
inherited static
fromJSON(json: any): any
toJSON
inherited
toJSON(): any

fromJSON

inheritedstatic Method
Signature
fromJSON (json: any): any
Inherited from: JSONSupportMixin

Creates a new instance of this class and initializes it with values from a JSON object generated from an ArcGIS product. The object passed into the input json parameter often comes from a response to a query operation in the REST API or a toJSON() method from another ArcGIS product. See the Using fromJSON() topic in the Guide for details and examples of when and how to use this function.

Parameters
ParameterTypeDescriptionRequired
json
any

A JSON representation of the instance in the ArcGIS format. See the ArcGIS REST API documentation for examples of the structure of various input JSON objects.

Returns
any

Returns a new instance of this class.

toJSON

inherited Method
Signature
toJSON (): any
Inherited from: JSONSupportMixin

Converts an instance of this class to its ArcGIS portal JSON representation. See the Using fromJSON() guide topic for more information.

Returns
any

The ArcGIS portal JSON representation of an instance of this class.