import UtilityNetworkValidateTopologyViewModel from "@arcgis/core/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js";const UtilityNetworkValidateTopologyViewModel = await $arcgis.import("@arcgis/core/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js");- Inheritance:
- UtilityNetworkValidateTopologyViewModel→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.27
Provides the logic for the UtilityNetworkValidateTopology widget and component.
Constructors
Constructor
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| 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.
| Property | Type | Class |
|---|---|---|
declaredClass readonly inherited | ||
executionError readonly | | |
| | ||
| | ||
state readonly | | |
| | ||
| |
executionError
readonly Property
- Type
- string
If the validation process fails, this property returns an error message. Otherwise, it is empty.
- Default value
- ""
loadErrors
autocast
Property
- Type
- Collection<string>
If an error occurs during during validation a loadError wil be displayed.
utilityNetwork
Property
- Type
- UtilityNetwork | null | undefined
Determines the utility network to use.
Methods
| Method | Signature | Class |
|---|---|---|
validateTopology(): Promise<void> | |
validateTopology
Method
- Signature
-
validateTopology (): Promise<void>
Validates the network topology of the utility network.
- See also