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

This class defines the collection of results returned from the trace function. The trace can return network elements, aggregated geometries, and functions.

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.

aggregatedGeometry

readonly Property
Type
AggregatedGeometry | null | undefined

This property defines an aggregation of geometries returned by the trace. The aggregated geometries will only include geometries that belong to features with assetgroups/assettypes specified in the trace output. This is returned only if the aggregated geometries results type is defined in the trace configuration.

circuits

readonly Property
Type
CircuitTraceResult[] | null | undefined
Since
ArcGIS Maps SDK for JavaScript 4.34
beta

An array of circuits returned by the trace. Used in the telecom domain network. This is returned only if the "circuits" result type is defined in the trace configuration.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

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

elements

readonly Property
Type
NetworkElement[]

An array of network elements returned by the trace. The network element is a representation of how the network topology defines its graph. This is returned only if the elements results type is defined in the trace configuration.

The elements property returning a TelecomNetworkElement is in beta and is reserved for future use in a telecom domain network.

See also

globalFunctionResults

readonly Property
Type
FunctionResult[]

Returns an array of function aggregation results.

kFeaturesForKNNFound

readonly Property
Type
boolean

This parameter is specific to the K-Nearest Neighbors Algorithm, when the nearest filter is provided in the trace configuration. It returns true if any neighbors were found.

Default value
false

paths

readonly Property
Type
CircuitPath[] | null | undefined
Since
ArcGIS Maps SDK for JavaScript 4.34
beta

The paths returned by a path trace.

startingPointsIgnored

readonly Property
Type
boolean

Returns true if the starting points in the network trace operation are ignored.

Default value
false

warnings

readonly Property
Type
string[] | null | undefined

Returns any warnings encountered by the trace operation.

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.