import "@arcgis/map-components/components/arcgis-utility-network-associations";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
| Property | Attribute | Type |
|---|---|---|
autoDestroyDisabled | auto-destroy-disabled | boolean |
autoRefreshAssociationsDisabled | auto-refresh-associations-disabled | boolean |
connectivityAssociationsLineSymbol | | SimpleLineSymbol |
hideConnectivityAssociationsSettingsColorPicker | hide-connectivity-associations-settings-color-picker | boolean |
hideConnectivityAssociationsSettingsStylePicker | hide-connectivity-associations-settings-style-picker | boolean |
hideConnectivityAssociationsSettingsWidthInput | hide-connectivity-associations-settings-width-input | boolean |
hideStructuralAttachmentAssociationsSettingsColorPicker | hide-structural-attachment-associations-settings-color-picker | boolean |
hideStructuralAttachmentAssociationsSettingsStylePicker | hide-structural-attachment-associations-settings-style-picker | boolean |
hideStructuralAttachmentAssociationsSettingsWidthInput | hide-structural-attachment-associations-settings-width-input | boolean |
icon | icon | string |
includeConnectivityAssociationsDisabled | include-connectivity-associations-disabled | boolean |
includeStructuralAttachmentAssociationsDisabled | include-structural-attachment-associations-disabled | boolean |
label | label | string |
maxAllowableAssociations | max-allowable-associations | number |
maxAllowableAssociationsSliderMax | max-allowable-associations-slider-max | number |
maxAllowableAssociationsSliderMin | max-allowable-associations-slider-min | number |
maxAllowableAssociationsSliderStep | max-allowable-associations-slider-step | number |
positiondeprecated | position | "bottom-leading" | "bottom-left" | "bottom-right" | "bottom-trailing" | "manual" | "top-leading" | "top-left" | "top-right" | "top-trailing" |
referenceElement | reference-element | HTMLArcgisLinkChartElement | HTMLArcgisMapElement | HTMLArcgisSceneElement | string |
showArrowsConnectivity | show-arrows-connectivity | boolean |
showArrowsStructuralAttachment | show-arrows-structural-attachment | boolean |
showAssociationsEnabled | show-associations-enabled | boolean |
showConnectivityAssociationsSettingsArrowsToggle | show-connectivity-associations-settings-arrows-toggle | boolean |
showConnectivityAssociationsSettingsCapSelect | show-connectivity-associations-settings-cap-select | boolean |
showMaxAllowableAssociationsSlider | show-max-allowable-associations-slider | boolean |
showStructuralAttachmentAssociationsSettingsArrowsToggle | show-structural-attachment-associations-settings-arrows-toggle | boolean |
showStructuralAttachmentAssociationsSettingsCapSelect | show-structural-attachment-associations-settings-cap-select | boolean |
structuralAttachmentAssociationsLineSymbol | | SimpleLineSymbol |
utilityNetwork | | UtilityNetwork |
view | | MapView |
visible-elements-connectivity-associations-settings-arrows-toggle | boolean | |
visible-elements-connectivity-associations-settings-cap-select | boolean | |
visible-elements-connectivity-associations-settings-color-picker | boolean | |
visible-elements-connectivity-associations-settings-style-picker | boolean | |
visible-elements-connectivity-associations-settings-width-input | boolean | |
visible-elements-max-allowable-associations-slider | boolean | |
visible-elements-structural-attachment-associations-settings-arrows-toggle | boolean | |
visible-elements-structural-attachment-associations-settings-cap-select | boolean | |
visible-elements-structural-attachment-associations-settings-color-picker | boolean | |
visible-elements-structural-attachment-associations-settings-style-picker | boolean | |
visible-elements-structural-attachment-associations-settings-width-input | boolean |
autoDestroyDisabled
autoDestroyDisabled: booleanIf 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
autoRefreshAssociationsDisabled: booleanIndicates 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.
- Attribute
- auto-refresh-associations-disabled
- Default value
- false
connectivityAssociationsLineSymbol
connectivityAssociationsLineSymbol: SimpleLineSymbolA SimpleLineSymbol used for representing the polyline geometry that is being drawn for connectivity associations.
hideConnectivityAssociationsSettingsColorPicker
hideConnectivityAssociationsSettingsColorPicker: booleanIf true, hides the connectivity association color picker.
- Attribute
- hide-connectivity-associations-settings-color-picker
- Default value
- false
hideConnectivityAssociationsSettingsStylePicker
hideConnectivityAssociationsSettingsStylePicker: booleanIf true, hides the connectivity association style picker.
- Attribute
- hide-connectivity-associations-settings-style-picker
- Default value
- false
hideConnectivityAssociationsSettingsWidthInput
hideConnectivityAssociationsSettingsWidthInput: booleanIf true, hides the connectivity association width input.
- Attribute
- hide-connectivity-associations-settings-width-input
- Default value
- false
hideStructuralAttachmentAssociationsSettingsColorPicker
hideStructuralAttachmentAssociationsSettingsColorPicker: booleanIf true, hides the structural attachment associations color picker.
- Attribute
- hide-structural-attachment-associations-settings-color-picker
- Default value
- false
hideStructuralAttachmentAssociationsSettingsStylePicker
hideStructuralAttachmentAssociationsSettingsStylePicker: booleanIf true, hides the structural attachment associations style picker.
- Attribute
- hide-structural-attachment-associations-settings-style-picker
- Default value
- false
hideStructuralAttachmentAssociationsSettingsWidthInput
hideStructuralAttachmentAssociationsSettingsWidthInput: booleanIf true, hides the structural attachment associations width input.
- Attribute
- hide-structural-attachment-associations-settings-width-input
- Default value
- false
icon
icon: stringIcon 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
includeConnectivityAssociationsDisabled: booleanIndicates whether to query and display connectivity associations.
- Attribute
- include-connectivity-associations-disabled
- Default value
- false
includeStructuralAttachmentAssociationsDisabled
includeStructuralAttachmentAssociationsDisabled: booleanIndicates whether to query and display structural attachment associations.
- Attribute
- include-structural-attachment-associations-disabled
- Default value
- false
maxAllowableAssociations
maxAllowableAssociations: numberThe maximum number of associations that can be returned from the server.
- Attribute
- max-allowable-associations
- Default value
- 250
maxAllowableAssociationsSliderMax
maxAllowableAssociationsSliderMax: numberThe maximum value or upper bound of the Maximum allowable associations slider.
- Attribute
- max-allowable-associations-slider-max
maxAllowableAssociationsSliderMin
maxAllowableAssociationsSliderMin: numberThe minimum value or lower bound of the Maximum allowable associations slider.
- Attribute
- max-allowable-associations-slider-min
maxAllowableAssociationsSliderStep
maxAllowableAssociationsSliderStep: numberSpecifies the interval to move the maximum allowable associations slider with the up, or down keys.
- Attribute
- max-allowable-associations-slider-step
position
position: "bottom-leading" | "bottom-left" | "bottom-right" | "bottom-trailing" | "manual" | "top-leading" | "top-left" | "top-right" | "top-trailing"slot instead.- Attribute
- position
referenceElement
referenceElement: HTMLArcgisLinkChartElement | HTMLArcgisMapElement | HTMLArcgisSceneElement | stringBy 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.
- Attribute
- reference-element
showArrowsConnectivity
showArrowsConnectivity: booleanIndicates whether to show arrows for connectivity associations.
- Attribute
- show-arrows-connectivity
- Default value
- false
showArrowsStructuralAttachment
showArrowsStructuralAttachment: booleanIndicates whether to show arrows for structural attachment associations.
- Attribute
- show-arrows-structural-attachment
- Default value
- false
showAssociationsEnabled
showAssociationsEnabled: booleanWhen autoRefreshAssociations is true, indicates whether to automatically show associations
every time the current map extent changes.
- Attribute
- show-associations-enabled
- Default value
- false
showConnectivityAssociationsSettingsArrowsToggle
showConnectivityAssociationsSettingsArrowsToggle: booleanIf true, shows the connectivity association arrows toggle.
- Attribute
- show-connectivity-associations-settings-arrows-toggle
- Default value
- false
showConnectivityAssociationsSettingsCapSelect
showConnectivityAssociationsSettingsCapSelect: booleanIf true, shows the connectivity association cap select.
- Attribute
- show-connectivity-associations-settings-cap-select
- Default value
- false
showMaxAllowableAssociationsSlider
showMaxAllowableAssociationsSlider: booleanIf true, hides the max allowable associations slider.
- Attribute
- show-max-allowable-associations-slider
- Default value
- false
showStructuralAttachmentAssociationsSettingsArrowsToggle
showStructuralAttachmentAssociationsSettingsArrowsToggle: booleanIf true, shows the structural attachment associations arrow toggle.
- Attribute
- show-structural-attachment-associations-settings-arrows-toggle
- Default value
- false
showStructuralAttachmentAssociationsSettingsCapSelect
showStructuralAttachmentAssociationsSettingsCapSelect: booleanIf true, shows the structural attachment associations cap select.
- Attribute
- show-structural-attachment-associations-settings-cap-select
- Default value
- false
structuralAttachmentAssociationsLineSymbol
structuralAttachmentAssociationsLineSymbol: SimpleLineSymbolA SimpleLineSymbol used for representing the polyline geometry that is being drawn for structural attachment associations.
view
view: MapViewThe 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
viewproperty 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 theviewproperty.
visibleElementsConnectivityAssociationsSettingsArrowsToggle
visibleElementsConnectivityAssociationsSettingsArrowsToggle: boolean- Attribute
- visible-elements-connectivity-associations-settings-arrows-toggle
- Default value
- false
visibleElementsConnectivityAssociationsSettingsCapSelect
visibleElementsConnectivityAssociationsSettingsCapSelect: boolean- Attribute
- visible-elements-connectivity-associations-settings-cap-select
- Default value
- false
visibleElementsConnectivityAssociationsSettingsColorPicker
visibleElementsConnectivityAssociationsSettingsColorPicker: boolean- Attribute
- visible-elements-connectivity-associations-settings-color-picker
- Default value
- true
visibleElementsConnectivityAssociationsSettingsStylePicker
visibleElementsConnectivityAssociationsSettingsStylePicker: boolean- Attribute
- visible-elements-connectivity-associations-settings-style-picker
- Default value
- true
visibleElementsConnectivityAssociationsSettingsWidthInput
visibleElementsConnectivityAssociationsSettingsWidthInput: boolean- Attribute
- visible-elements-connectivity-associations-settings-width-input
- Default value
- true
visibleElementsMaxAllowableAssociationsSlider
visibleElementsMaxAllowableAssociationsSlider: boolean- Attribute
- visible-elements-max-allowable-associations-slider
- Default value
- false
visibleElementsStructuralAttachmentAssociationsSettingsArrowsToggle
visibleElementsStructuralAttachmentAssociationsSettingsArrowsToggle: boolean- Attribute
- visible-elements-structural-attachment-associations-settings-arrows-toggle
- Default value
- false
visibleElementsStructuralAttachmentAssociationsSettingsCapSelect
visibleElementsStructuralAttachmentAssociationsSettingsCapSelect: boolean- Attribute
- visible-elements-structural-attachment-associations-settings-cap-select
- Default value
- false
visibleElementsStructuralAttachmentAssociationsSettingsColorPicker
visibleElementsStructuralAttachmentAssociationsSettingsColorPicker: boolean- Attribute
- visible-elements-structural-attachment-associations-settings-color-picker
- Default value
- true
visibleElementsStructuralAttachmentAssociationsSettingsStylePicker
visibleElementsStructuralAttachmentAssociationsSettingsStylePicker: boolean- Attribute
- visible-elements-structural-attachment-associations-settings-style-picker
- Default value
- true
visibleElementsStructuralAttachmentAssociationsSettingsWidthInput
visibleElementsStructuralAttachmentAssociationsSettingsWidthInput: boolean- Attribute
- visible-elements-structural-attachment-associations-settings-width-input
- Default value
- true
Methods
| Method | Signature |
|---|---|
componentOnReady | componentOnReady(): Promise<void> |
destroy | destroy(): Promise<void> |
componentOnReady
componentOnReady(): Promise<void>Create a promise that resolves once component is fully loaded.
Example
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>
Events
| Event | Type |
|---|---|
arcgisReady | CustomEvent<void> |
arcgisReady
arcgisReady: CustomEvent<void>Emitted when the component associated with a map or scene view is ready to be interacted with.