import UtilityNetworkAssociationsViewModel from "@arcgis/core/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js";const UtilityNetworkAssociationsViewModel = await $arcgis.import("@arcgis/core/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js");- Inheritance:
- UtilityNetworkAssociationsViewModel→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.26
Provides the logic for the UtilityNetworkAssociations widget and component.
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
| | ||
declaredClass readonly inherited | ||
| | ||
| | ||
| | ||
| | ||
| | ||
state readonly | | |
| | ||
| | ||
| |
connectivityAssociationsLineSymbol
- Type
- SimpleLineSymbol
A SimpleLineSymbol used for representing the polyline geometry that is being drawn for connectivity associations.
The default value is the following:
{ type: "simple-line", color: [190, 159, 159, 1], style: "short-dash", width: 2} includeConnectivityAssociations
- Type
- boolean
Indicates whether to query and display connectivity associations.
- Default value
- true
includeStructuralAttachmentAssociations
- Type
- boolean
Indicates whether to query and display structural attachment associations.
- Default value
- true
maxAllowableAssociations
- Type
- number
The maximum number of associations that can be returned from the server.
- Default value
- 250
showArrowsConnectivity
- Type
- boolean
Indicates whether to show arrows for connectivity associations.
- Default value
- false
showArrowsStructuralAttachment
- Type
- boolean
Indicates whether to show arrows for structural attachment associations.
- Default value
- false
structuralAttachmentAssociationsLineSymbol
- Type
- SimpleLineSymbol
A SimpleLineSymbol used for representing the polyline geometry that is being drawn for structural attachment associations. *
The default value is the following:
{ type: "simple-line", color: [159, 190, 159, 1], style: "short-dash", width: 2} utilityNetwork
- Type
- UtilityNetwork | null | undefined
Determines the utility network to use.
Methods
| Method | Signature | Class |
|---|---|---|
removeAssociations(): void | | |
showAssociations(): Promise<void> | |
removeAssociations
- Signature
-
removeAssociations (): void
Removes all associations from the map.
- Returns
- void