Skip to content

Utility Network Associations

ESM:
Use dark colors for code blocksCopy
1
import "@arcgis/map-components/components/arcgis-utility-network-associations";
CDN:
No specific import is needed for this component.
Since:ArcGIS Maps SDK for JavaScript 4.28

The Utility Network Associations component offers an intuitive user interface, reducing the complexity of working with utility network associations.

The Utility Network Associations component does not support proxied feature services or feature services that utilize stored credentials.

Properties

PropertyAttributeType
autoDestroyDisabledauto-destroy-disabledboolean
autoRefreshAssociationsDisabledauto-refresh-associations-disabledboolean
connectivityAssociationsLineSymbolSimpleLineSymbol
hideConnectivityAssociationsSettingsColorPickerhide-connectivity-associations-settings-color-pickerboolean
hideConnectivityAssociationsSettingsStylePickerhide-connectivity-associations-settings-style-pickerboolean
hideConnectivityAssociationsSettingsWidthInputhide-connectivity-associations-settings-width-inputboolean
hideStructuralAttachmentAssociationsSettingsColorPickerhide-structural-attachment-associations-settings-color-pickerboolean
hideStructuralAttachmentAssociationsSettingsStylePickerhide-structural-attachment-associations-settings-style-pickerboolean
hideStructuralAttachmentAssociationsSettingsWidthInputhide-structural-attachment-associations-settings-width-inputboolean
iconiconstring
includeConnectivityAssociationsDisabledinclude-connectivity-associations-disabledboolean
includeStructuralAttachmentAssociationsDisabledinclude-structural-attachment-associations-disabledboolean
labellabelstring
maxAllowableAssociationsmax-allowable-associationsnumber
maxAllowableAssociationsSliderMaxmax-allowable-associations-slider-maxnumber
maxAllowableAssociationsSliderMinmax-allowable-associations-slider-minnumber
maxAllowableAssociationsSliderStepmax-allowable-associations-slider-stepnumber
position
deprecated
position"bottom-leading" | "bottom-left" | "bottom-right" | "bottom-trailing" | "manual" | "top-leading" | "top-left" | "top-right" | "top-trailing"
referenceElementreference-elementHTMLArcgisLinkChartElement | HTMLArcgisMapElement | HTMLArcgisSceneElement | string
showArrowsConnectivityshow-arrows-connectivityboolean
showArrowsStructuralAttachmentshow-arrows-structural-attachmentboolean
showAssociationsEnabledshow-associations-enabledboolean
showConnectivityAssociationsSettingsArrowsToggleshow-connectivity-associations-settings-arrows-toggleboolean
showConnectivityAssociationsSettingsCapSelectshow-connectivity-associations-settings-cap-selectboolean
showMaxAllowableAssociationsSlidershow-max-allowable-associations-sliderboolean
showStructuralAttachmentAssociationsSettingsArrowsToggleshow-structural-attachment-associations-settings-arrows-toggleboolean
showStructuralAttachmentAssociationsSettingsCapSelectshow-structural-attachment-associations-settings-cap-selectboolean
structuralAttachmentAssociationsLineSymbolSimpleLineSymbol
utilityNetworkUtilityNetwork
viewMapView
visible-elements-connectivity-associations-settings-arrows-toggleboolean
visible-elements-connectivity-associations-settings-cap-selectboolean
visible-elements-connectivity-associations-settings-color-pickerboolean
visible-elements-connectivity-associations-settings-style-pickerboolean
visible-elements-connectivity-associations-settings-width-inputboolean
visible-elements-max-allowable-associations-sliderboolean
visible-elements-structural-attachment-associations-settings-arrows-toggleboolean
visible-elements-structural-attachment-associations-settings-cap-selectboolean
visible-elements-structural-attachment-associations-settings-color-pickerboolean
visible-elements-structural-attachment-associations-settings-style-pickerboolean
visible-elements-structural-attachment-associations-settings-width-inputboolean

autoDestroyDisabled

Property
autoDestroyDisabled: boolean

If true, the component will not be destroyed automatically when it is disconnected from the document. This is useful when you want to move the component to a different place on the page, or temporarily hide it. If this is set, make sure to call the destroy method when you are done to prevent memory leaks.

Attribute
auto-destroy-disabled
Default value
false

autoRefreshAssociationsDisabled

Property
autoRefreshAssociationsDisabled: boolean

Indicates whether to show a toggle to automatically show associations every time the map extent changes, or an action button to show associations within the current map extent on demand.

Read more...

Attribute
auto-refresh-associations-disabled
Default value
false

connectivityAssociationsLineSymbol

Property
connectivityAssociationsLineSymbol: SimpleLineSymbol

A SimpleLineSymbol used for representing the polyline geometry that is being drawn for connectivity associations.

Read more...

hideConnectivityAssociationsSettingsColorPicker

Property
hideConnectivityAssociationsSettingsColorPicker: boolean

If true, hides the connectivity association color picker.

Attribute
hide-connectivity-associations-settings-color-picker
Default value
false

hideConnectivityAssociationsSettingsStylePicker

Property
hideConnectivityAssociationsSettingsStylePicker: boolean

If true, hides the connectivity association style picker.

Attribute
hide-connectivity-associations-settings-style-picker
Default value
false

hideConnectivityAssociationsSettingsWidthInput

Property
hideConnectivityAssociationsSettingsWidthInput: boolean

If true, hides the connectivity association width input.

Attribute
hide-connectivity-associations-settings-width-input
Default value
false

hideStructuralAttachmentAssociationsSettingsColorPicker

Property
hideStructuralAttachmentAssociationsSettingsColorPicker: boolean

If true, hides the structural attachment associations color picker.

Attribute
hide-structural-attachment-associations-settings-color-picker
Default value
false

hideStructuralAttachmentAssociationsSettingsStylePicker

Property
hideStructuralAttachmentAssociationsSettingsStylePicker: boolean

If true, hides the structural attachment associations style picker.

Attribute
hide-structural-attachment-associations-settings-style-picker
Default value
false

hideStructuralAttachmentAssociationsSettingsWidthInput

Property
hideStructuralAttachmentAssociationsSettingsWidthInput: boolean

If true, hides the structural attachment associations width input.

Attribute
hide-structural-attachment-associations-settings-width-input
Default value
false

icon

Property
icon: string

Icon which represents the component. Typically used when the component is controlled by another component (e.g. by the Expand component).

See also
Attribute
icon
Default value
"view-associations"

includeConnectivityAssociationsDisabled

Property
includeConnectivityAssociationsDisabled: boolean

Indicates whether to query and display connectivity associations.

Read more...

Attribute
include-connectivity-associations-disabled
Default value
false

includeStructuralAttachmentAssociationsDisabled

Property
includeStructuralAttachmentAssociationsDisabled: boolean

Indicates whether to query and display structural attachment associations.

Read more...

Attribute
include-structural-attachment-associations-disabled
Default value
false

label

Property
label: string

The widget's default label.

Read more...

Attribute
label

maxAllowableAssociations

Property
maxAllowableAssociations: number

The maximum number of associations that can be returned from the server.

Attribute
max-allowable-associations
Default value
250

maxAllowableAssociationsSliderMax

Property
maxAllowableAssociationsSliderMax: number

The maximum value or upper bound of the Maximum allowable associations slider.

Read more...

Attribute
max-allowable-associations-slider-max

maxAllowableAssociationsSliderMin

Property
maxAllowableAssociationsSliderMin: number

The minimum value or lower bound of the Maximum allowable associations slider.

Read more...

Attribute
max-allowable-associations-slider-min

maxAllowableAssociationsSliderStep

Property
maxAllowableAssociationsSliderStep: number

Specifies the interval to move the maximum allowable associations slider with the up, or down keys.

Read more...

Attribute
max-allowable-associations-slider-step

position

deprecatedProperty
position: "bottom-leading" | "bottom-left" | "bottom-right" | "bottom-trailing" | "manual" | "top-leading" | "top-left" | "top-right" | "top-trailing"
Deprecatedsince 4.34, use slot instead.
Attribute
position

referenceElement

Property

By assigning the id attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.

See also
Attribute
reference-element

showArrowsConnectivity

Property
showArrowsConnectivity: boolean

Indicates whether to show arrows for connectivity associations.

Attribute
show-arrows-connectivity
Default value
false

showArrowsStructuralAttachment

Property
showArrowsStructuralAttachment: boolean

Indicates whether to show arrows for structural attachment associations.

Attribute
show-arrows-structural-attachment
Default value
false

showAssociationsEnabled

Property
showAssociationsEnabled: boolean

When autoRefreshAssociations is true, indicates whether to automatically show associations every time the current map extent changes.

Attribute
show-associations-enabled
Default value
false

showConnectivityAssociationsSettingsArrowsToggle

Property
showConnectivityAssociationsSettingsArrowsToggle: boolean

If true, shows the connectivity association arrows toggle.

Attribute
show-connectivity-associations-settings-arrows-toggle
Default value
false

showConnectivityAssociationsSettingsCapSelect

Property
showConnectivityAssociationsSettingsCapSelect: boolean

If true, shows the connectivity association cap select.

Attribute
show-connectivity-associations-settings-cap-select
Default value
false

showMaxAllowableAssociationsSlider

Property
showMaxAllowableAssociationsSlider: boolean

If true, hides the max allowable associations slider.

Attribute
show-max-allowable-associations-slider
Default value
false

showStructuralAttachmentAssociationsSettingsArrowsToggle

Property
showStructuralAttachmentAssociationsSettingsArrowsToggle: boolean

If true, shows the structural attachment associations arrow toggle.

Attribute
show-structural-attachment-associations-settings-arrows-toggle
Default value
false

showStructuralAttachmentAssociationsSettingsCapSelect

Property
showStructuralAttachmentAssociationsSettingsCapSelect: boolean

If true, shows the structural attachment associations cap select.

Attribute
show-structural-attachment-associations-settings-cap-select
Default value
false

structuralAttachmentAssociationsLineSymbol

Property
structuralAttachmentAssociationsLineSymbol: SimpleLineSymbol

A SimpleLineSymbol used for representing the polyline geometry that is being drawn for structural attachment associations.

Read more...

utilityNetwork

Property
utilityNetwork: UtilityNetwork

Determines the utility network to use.

Read more...

view

Property
view: MapView

The view associated with the component.

Note: The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this view property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the Utility Network Associations component will be associated with a map or scene component rather than using the view property.

visibleElementsConnectivityAssociationsSettingsArrowsToggle

deprecatedProperty
visibleElementsConnectivityAssociationsSettingsArrowsToggle: boolean
Deprecatedsince 4.32, showConnectivityAssociationsSettingsArrowsToggle instead.
Attribute
visible-elements-connectivity-associations-settings-arrows-toggle
Default value
false

visibleElementsConnectivityAssociationsSettingsCapSelect

deprecatedProperty
visibleElementsConnectivityAssociationsSettingsCapSelect: boolean
Deprecatedsince 4.32, use showConnectivityAssociationsSettingsCapSelect instead.
Attribute
visible-elements-connectivity-associations-settings-cap-select
Default value
false

visibleElementsConnectivityAssociationsSettingsColorPicker

deprecatedProperty
visibleElementsConnectivityAssociationsSettingsColorPicker: boolean
Deprecatedsince 4.32, use hideConnectivityAssociationsSettingsColorPicker instead.
Attribute
visible-elements-connectivity-associations-settings-color-picker
Default value
true

visibleElementsConnectivityAssociationsSettingsStylePicker

deprecatedProperty
visibleElementsConnectivityAssociationsSettingsStylePicker: boolean
Deprecatedsince 4.32, use hideConnectivityAssociationsSettingsStylePicker instead.
Attribute
visible-elements-connectivity-associations-settings-style-picker
Default value
true

visibleElementsConnectivityAssociationsSettingsWidthInput

deprecatedProperty
visibleElementsConnectivityAssociationsSettingsWidthInput: boolean
Deprecatedsince 4.32, use hideConnectivityAssociationsSettingsWidthInput instead.
Attribute
visible-elements-connectivity-associations-settings-width-input
Default value
true

visibleElementsMaxAllowableAssociationsSlider

deprecatedProperty
visibleElementsMaxAllowableAssociationsSlider: boolean
Deprecatedsince 4.32, use showMaxAllowableAssociationsSlider instead.
Attribute
visible-elements-max-allowable-associations-slider
Default value
false

visibleElementsStructuralAttachmentAssociationsSettingsArrowsToggle

deprecatedProperty
visibleElementsStructuralAttachmentAssociationsSettingsArrowsToggle: boolean
Deprecatedsince 4.32, use showStructuralAttachmentAssociationsSettingsArrowsToggle instead.
Attribute
visible-elements-structural-attachment-associations-settings-arrows-toggle
Default value
false

visibleElementsStructuralAttachmentAssociationsSettingsCapSelect

deprecatedProperty
visibleElementsStructuralAttachmentAssociationsSettingsCapSelect: boolean
Deprecatedsince 4.32, use showStructuralAttachmentAssociationsSettingsCapSelect instead.
Attribute
visible-elements-structural-attachment-associations-settings-cap-select
Default value
false

visibleElementsStructuralAttachmentAssociationsSettingsColorPicker

deprecatedProperty
visibleElementsStructuralAttachmentAssociationsSettingsColorPicker: boolean
Deprecatedsince 4.32, use hideStructuralAttachmentAssociationsSettingsColorPicker instead.
Attribute
visible-elements-structural-attachment-associations-settings-color-picker
Default value
true

visibleElementsStructuralAttachmentAssociationsSettingsStylePicker

deprecatedProperty
visibleElementsStructuralAttachmentAssociationsSettingsStylePicker: boolean
Deprecatedsince 4.32, use hideStructuralAttachmentAssociationsSettingsStylePicker instead.
Attribute
visible-elements-structural-attachment-associations-settings-style-picker
Default value
true

visibleElementsStructuralAttachmentAssociationsSettingsWidthInput

deprecatedProperty
visibleElementsStructuralAttachmentAssociationsSettingsWidthInput: boolean
Deprecatedsince 4.32, use hideStructuralAttachmentAssociationsSettingsWidthInput instead.
Attribute
visible-elements-structural-attachment-associations-settings-width-input
Default value
true

Methods

MethodSignature
componentOnReadycomponentOnReady(): Promise<void>
destroydestroy(): Promise<void>

componentOnReady

Method
componentOnReady(): Promise<void>

Create a promise that resolves once component is fully loaded.

Example
Use dark colors for code blocksCopy
1
2
3
4
const arcgisUtilityNetworkAssociations = document.querySelector("arcgis-utility-network-associations");
document.body.append(arcgisUtilityNetworkAssociations);
await arcgisUtilityNetworkAssociations.componentOnReady();
console.log("arcgis-utility-network-associations is ready to go!");
Returns
Promise<void>

destroy

Method
destroy(): Promise<void>

Permanently destroy the component.

Returns
Promise<void>

Events

EventType
arcgisReadyCustomEvent<void>

arcgisReady

Event
arcgisReady: CustomEvent<void>

Emitted when the component associated with a map or scene view is ready to be interacted with.

bubbles
composed
cancelable

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.