{"id":1425162,"date":"2021-12-13T08:00:19","date_gmt":"2021-12-13T16:00:19","guid":{"rendered":"https:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=1425162"},"modified":"2024-11-25T11:10:01","modified_gmt":"2024-11-25T19:10:01","slug":"trace-a-utility-network-with-arcgis-api-for-java-script","status":"publish","type":"blog","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script","title":{"rendered":"Trace a Utility Network with the ArcGIS API for JavaScript"},"author":9772,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_searchwp_excluded":""},"categories":[23851],"tags":[96582,565442,24831,760932,660431],"industry":[],"product":[36831,515312],"class_list":["post-1425162","blog","type-blog","status-publish","format-standard","hentry","category-data-management","tag-arcgis-api-for-javascript","tag-arcgis-utility-network","tag-trace","tag-trace-javascript-utility-network","tag-utility-network-api","product-js-api-arcgis","product-utility-network"],"acf":{"short_description":"Trace how resources flow through a utility network with ArcGIS API for JavaScript.","flexible_content":[{"acf_fc_layout":"content","content":"<p>The <a href=\"https:\/\/www.esri.com\/en-us\/arcgis\/products\/arcgis-utility-network\/overview\">ArcGIS Utility Network<\/a> is supported in the ArcGIS API for JavaScript since the <a href=\"https:\/\/developers.arcgis.com\/javascript\/latest\/api-reference\/esri-networks-UtilityNetwork.html\">4.20 release<\/a>. With the <a href=\"https:\/\/developers.arcgis.com\/javascript\/latest\/release-notes\/#trace-how-resources-flow-through-a-utility-network\">4.22 release<\/a>,\u00a0the <a href=\"https:\/\/developers.arcgis.com\/javascript\/latest\/api-reference\/esri-widgets-UtilityNetworkTrace.html\">UtilityNetworkTrace widget<\/a> is now provided to trace how resources flow through a utility network.<\/p>\n<h2><strong>Introducing the Utility Network Trace widget<\/strong><\/h2>\n<p>The Utility Network Trace widget can be used to execute one or multiple traces concurrently to streamline workflows. It leverages the <a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/2.8\/help\/data\/utility-network\/about-trace-configurations.htm\">named trace configuration<\/a> capability, which allows you to add and store complex traces in a utility network, and share them across an organization through web maps. The trace parameters are preset for each specific trace, making the widget easy to use.<\/p>\n<p>Place starting points and barriers, and select a trace to run from a customized list of traces.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1425562,"id":1425562,"title":"Run traces using the Utility Network Trace widget","filename":"iso-trace-2.gif","filesize":8276811,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/iso-trace-2.gif","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script\/iso-trace-2","alt":"Run traces using the Utility Network Trace widget","author":"9772","description":"Run traces using the Utility Network Trace widget","caption":"Run traces using the Utility Network Trace widget","name":"iso-trace-2","status":"inherit","uploaded_to":1425162,"date":"2021-12-08 00:20:43","modified":"2021-12-08 00:20:53","menu_order":0,"mime_type":"image\/gif","type":"image","subtype":"gif","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1164,"height":630,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/iso-trace-2-213x200.gif","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/iso-trace-2.gif","medium-width":464,"medium-height":251,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/iso-trace-2.gif","medium_large-width":768,"medium_large-height":416,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/iso-trace-2.gif","large-width":1164,"large-height":630,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/iso-trace-2.gif","1536x1536-width":1164,"1536x1536-height":630,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/iso-trace-2.gif","2048x2048-width":1164,"2048x2048-height":630,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/iso-trace-2-826x447.gif","card_image-width":826,"card_image-height":447,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/iso-trace-2.gif","wide_image-width":1164,"wide_image-height":630}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"blockquote","content":"<p>Check out the live sample for this widget: <a href=\"https:\/\/developers.arcgis.com\/javascript\/latest\/sample-code\/widgets-untrace\/\" target=\"_blank\" rel=\"noopener\" aria-describedby=\"new-window\">UtilityNetworkTrace widget sample code<\/a><\/p>\n"},{"acf_fc_layout":"content","content":"<p>&nbsp;<\/p>\n<h2><strong>Get Started<\/strong><\/h2>\n"},{"acf_fc_layout":"blockquote","content":"<p>At a minimum, the widget requires ArcGIS Enterprise 10.9 and a <a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/2.7\/help\/data\/utility-network\/utility-network-upgrade-history.htm#ESRI_SECTION1_22053818D4484DB4A5B1CC482071A6A1\" target=\"_blank\" rel=\"noopener\" aria-describedby=\"new-window\">Utility Network version 5<\/a> created with ArcGIS Pro 2.7 (or later). The <a href=\"https:\/\/enterprise.arcgis.com\/en\/portal\/11.1\/administer\/windows\/license-user-type-extensions.htm#ESRI_SECTION1_41D78AD9691B42E0A8C227C113C0C0BF\" target=\"_blank\" rel=\"noopener\" aria-describedby=\"new-window\">ArcGIS Utility Network<\/a> user type extension is required to run traces on feature services published to Enterprise 11.1 or earlier.<\/p>\n"},{"acf_fc_layout":"content","content":"<p><strong>Step 1. Publish a feature service with the utility network<\/strong><\/p>\n<p>First you need to create a utility network and publish a feature service using an Enterprise deployment (10.9 or later). Follow the steps for <a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/latest\/help\/data\/utility-network\/create-and-configure-a-utility-network.htm\">utility network creation and configuration<\/a>.<\/p>\n<p>If you need sample data and step-by-step guidance to publish your first utility network service, deploy one of the ArcGIS Solutions listed <a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/latest\/help\/data\/utility-network\/create-and-configure-a-utility-network.htm#:~:text=%20sample%20industry%20configurations%20and%20data\">here<\/a>.<\/p>\n<p><strong>Step 2. Add and share named trace configurations<\/strong><\/p>\n<p>Once you\u2019ve published the feature service, you can use ArcGIS Pro to trace the utility network and add <a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/latest\/help\/data\/utility-network\/about-trace-configurations.htm\">named trace configurations<\/a>.<\/p>\n<p>Then, add your utility network feature service to a map, activate the trace configurations to share in your web map, and publish the map to your organization&#8217;s portal.<\/p>\n<p><strong>Step 3. Create an application<\/strong><\/p>\n<p>To add this widget to your web application using the ArcGIS API for JavaScript, load the web map you published and add the widget to the <a href=\"https:\/\/developers.arcgis.com\/javascript\/latest\/api-reference\/esri-views-MapView.html\">MapView<\/a>. See the code example below:<\/p>\n<pre><code style=\"padding: 0.5em;color: #333;background: #f8f8f8\">\r\n<span style=\"color: #998;font-style: italic\">\/\/ Load the web map with the utility network<\/span>\r\n<span style=\"color: #333;font-weight: bold\">const<\/span> webmap = <span style=\"color: #333;font-weight: bold\">new<\/span> WebMap({\r\n  portalItem: {\r\n    id: <span style=\"color: #d14\">\"86aeebb28ec24932bad52ff851b517b1\"<\/span>\r\n  }\r\n})\r\n<span style=\"color: #333;font-weight: bold\">const<\/span> view = <span style=\"color: #333;font-weight: bold\">new<\/span> MapView({\r\n  container: <span style=\"color: #d14\">\"viewDiv\"<\/span>,\r\n  map: map,\r\n});\r\n<span style=\"color: #998;font-style: italic\">\/\/ Create a new instance of the widget<\/span>\r\n<span style=\"color: #333;font-weight: bold\">const<\/span> unt = <span style=\"color: #333;font-weight: bold\">new<\/span> UtilityNetworkTrace({\r\n  view: view\r\n});\r\n<span style=\"color: #998;font-style: italic\">\/\/ Add the widget to the view<\/span>\r\nview.ui.add(unt, <span style=\"color: #d14\">\"top-right\"<\/span>);\r\n<\/code><\/pre>\n"},{"acf_fc_layout":"blockquote","content":"<p>The web map must contain a utility network feature service and be published with named trace configurations.<\/p>\n<p>The utility network feature service must be secured since the <a href=\"https:\/\/enterprise.arcgis.com\/en\/portal\/latest\/administer\/windows\/license-user-type-extensions.htm#ESRI_SECTION1_41D78AD9691B42E0A8C227C113C0C0BF\" target=\"_blank\" rel=\"noopener\" aria-describedby=\"new-window\">ArcGIS Utility Network user type extension<\/a> is required for users who wish to run a trace on the web service.<\/p>\n"},{"acf_fc_layout":"content","content":"<p>&nbsp;<\/p>\n<h2><strong>Use the Utility Network Trace widget<\/strong><\/h2>\n<h3><strong>Water Isolation example<\/strong><\/h3>\n<p><strong>Use case: <\/strong><em>I need to isolate the impacts of a water leak to minimize service interruptions to customers. I will identify which system valves need to be closed to stop the flow of water, and which customers will be affected by the ensuing water outage.<\/em><\/p>\n<p>To do this, I can trace a utility network feature service for water distribution.<\/p>\n<p><strong>Step 1. Select trace types<\/strong><\/p>\n<p>For this use case, the widget loads with two traces already selected in the <strong>Trace types<\/strong> dropdown. These two traces are different configurations of the <a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/latest\/help\/data\/utility-network\/isolation-trace.htm\">Isolation trace<\/a>. One of them will return the isolating features (the system valves that need to be closed to stop the flow of water), and the other trace will return all the isolated features (the features where the water will stop flowing).<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1425452,"id":1425452,"title":"Select trace types","filename":"trace-types.png","filesize":20893,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/trace-types.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script\/trace-types","alt":"Select the trace types to run","author":"9772","description":"Select the trace types to run","caption":"Select the trace types to run","name":"trace-types","status":"inherit","uploaded_to":1425162,"date":"2021-12-07 23:43:34","modified":"2021-12-07 23:45:12","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":302,"height":416,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/trace-types-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/trace-types.png","medium-width":189,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/trace-types.png","medium_large-width":302,"medium_large-height":416,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/trace-types.png","large-width":302,"large-height":416,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/trace-types.png","1536x1536-width":302,"1536x1536-height":416,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/trace-types.png","2048x2048-width":302,"2048x2048-height":416,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/trace-types.png","card_image-width":302,"card_image-height":416,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/trace-types.png","wide_image-width":302,"wide_image-height":416}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p><em>Note: To preset trace types in the widget for your applications, define them in the <a href=\"https:\/\/developers.arcgis.com\/javascript\/latest\/api-reference\/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#selectedTraces\">selectedTraces<\/a> property using the trace configuration&#8217;s global IDs.<\/em><\/p>\n<pre><code style=\"padding: 0.5em;color: #333;background: #f8f8f8\">\r\n<span style=\"color: #998;font-style: italic\">\/\/ Define the preset trace types <\/span>\r\n<span style=\"color: #333;font-weight: bold\">const<\/span> unt = <span style=\"color: #333;font-weight: bold\">new<\/span> UtilityNetworkTrace({\r\n  view: view,\r\n  selectedTraces: [<span style=\"color: #d14\">\"{E8D545B8-596D-4656-BF5E-16C1D7CBEC9B}\"<\/span>, <span style=\"color: #d14\">\"{04F8E462-F050-42C0-9E07-79D2BA7677CE}\"<\/span>]\r\n});\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Step 2. Add starting points<\/strong><\/p>\n<p>I will add a <a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/latest\/help\/data\/utility-network\/starting-points.htm\">starting point<\/a> at the leak location since this is where I need to stop the flow of the water, so the repairs can be made.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1426002,"id":1426002,"title":"Add starting point","filename":"start-points.png","filesize":62421,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/start-points.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script\/start-points","alt":"Place a starting point at the location of the water leak. This is where traces will start.","author":"9772","description":"Place a starting point at the location of the water leak. This is where traces will start.","caption":"Place a starting point at the location of the water leak. This is where traces will start.","name":"start-points","status":"inherit","uploaded_to":1425162,"date":"2021-12-08 01:08:16","modified":"2021-12-09 20:39:09","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":678,"height":522,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/start-points-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/start-points.png","medium-width":339,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/start-points.png","medium_large-width":678,"medium_large-height":522,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/start-points.png","large-width":678,"large-height":522,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/start-points.png","1536x1536-width":678,"1536x1536-height":522,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/start-points.png","2048x2048-width":678,"2048x2048-height":522,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/start-points-604x465.png","card_image-width":604,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/start-points.png","wide_image-width":678,"wide_image-height":522}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p>If the feature has <a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/latest\/help\/data\/utility-network\/device-terminals.htm\">terminals<\/a>, you can change which terminal is used to start the trace. There is only one terminal for this feature, which is the default terminal that will be used.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1425952,"id":1425952,"title":"Terminals","filename":"terminal.png","filesize":9404,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/terminal.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script\/terminal","alt":"Select terminals for starting points or barriers","author":"9772","description":"Select terminals for starting points or barriers","caption":"Select terminals for starting points or barriers","name":"terminal","status":"inherit","uploaded_to":1425162,"date":"2021-12-08 01:05:08","modified":"2021-12-08 01:09:53","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":287,"height":249,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/terminal-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/terminal.png","medium-width":287,"medium-height":249,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/terminal.png","medium_large-width":287,"medium_large-height":249,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/terminal.png","large-width":287,"large-height":249,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/terminal.png","1536x1536-width":287,"1536x1536-height":249,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/terminal.png","2048x2048-width":287,"2048x2048-height":249,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/terminal.png","card_image-width":287,"card_image-height":249,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/terminal.png","wide_image-width":287,"wide_image-height":249}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p><strong>Step 3. Add barriers<\/strong><\/p>\n<p>Optionally, set features in your network as <a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/latest\/help\/data\/utility-network\/barriers.htm\">barriers<\/a> for a trace. For example, a section of the water network is closed due to another field team doing work in the area to install a new system valve. I can place a barrier to exclude that part of the network in my trace results.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1426872,"id":1426872,"title":"Add barriers","filename":"barrier-tap1.png","filesize":115973,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/barrier-tap1.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script\/barrier-tap1","alt":"Place a barrier where the trace needs to stop","author":"9772","description":"Place a barrier where the trace needs to stop","caption":"Place a barrier where the trace needs to stop","name":"barrier-tap1","status":"inherit","uploaded_to":1425162,"date":"2021-12-08 17:03:50","modified":"2021-12-08 17:04:02","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1049,"height":434,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/barrier-tap1-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/barrier-tap1.png","medium-width":464,"medium-height":192,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/barrier-tap1.png","medium_large-width":768,"medium_large-height":318,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/barrier-tap1.png","large-width":1049,"large-height":434,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/barrier-tap1.png","1536x1536-width":1049,"1536x1536-height":434,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/barrier-tap1.png","2048x2048-width":1049,"2048x2048-height":434,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/barrier-tap1-826x342.png","card_image-width":826,"card_image-height":342,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/barrier-tap1.png","wide_image-width":1049,"wide_image-height":434}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p>These feature barriers can also be treated as <a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/latest\/help\/data\/utility-network\/barriers.htm#:~:text=filter%20barriers\">filter barriers<\/a> to first discover the subnetwork controllers before applying the barriers.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1426132,"id":1426132,"title":"Set filter barriers","filename":"filter-barrier1.png","filesize":16832,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/filter-barrier1.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script\/filter-barrier1","alt":"Use the checkbox to set a barrier as a filter barrier","author":"9772","description":"Use the checkbox to set a barrier as a filter barrier","caption":"Use the checkbox to set a barrier as a filter barrier","name":"filter-barrier1","status":"inherit","uploaded_to":1425162,"date":"2021-12-08 01:23:45","modified":"2021-12-08 17:07:20","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":303,"height":433,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/filter-barrier1-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/filter-barrier1.png","medium-width":183,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/filter-barrier1.png","medium_large-width":303,"medium_large-height":433,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/filter-barrier1.png","large-width":303,"large-height":433,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/filter-barrier1.png","1536x1536-width":303,"1536x1536-height":433,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/filter-barrier1.png","2048x2048-width":303,"2048x2048-height":433,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/filter-barrier1.png","card_image-width":303,"card_image-height":433,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/filter-barrier1.png","wide_image-width":303,"wide_image-height":433}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p><strong>Step 4. Run the trace<\/strong><\/p>\n<p>Once I&#8217;ve selected the trace types and set starting points and barriers, I can click Run to execute the traces. All traces are run concurrently and results are returned as the traces are completed. The trace results can be displayed as a selection, graphics, or both.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1426142,"id":1426142,"title":"Run the trace","filename":"trace-run.gif","filesize":1212694,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/trace-run.gif","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script\/trace-run","alt":"Click Run to execute the traces","author":"9772","description":"Click Run to execute the traces","caption":"Click Run to execute the traces","name":"trace-run","status":"inherit","uploaded_to":1425162,"date":"2021-12-08 01:30:16","modified":"2021-12-08 01:30:40","menu_order":0,"mime_type":"image\/gif","type":"image","subtype":"gif","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1134,"height":620,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/trace-run-213x200.gif","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/trace-run.gif","medium-width":464,"medium-height":254,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/trace-run.gif","medium_large-width":768,"medium_large-height":420,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/trace-run.gif","large-width":1134,"large-height":620,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/trace-run.gif","1536x1536-width":1134,"1536x1536-height":620,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/trace-run.gif","2048x2048-width":1134,"2048x2048-height":620,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/trace-run-826x452.gif","card_image-width":826,"card_image-height":452,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/trace-run.gif","wide_image-width":1134,"wide_image-height":620}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p><strong>Step 5. Explore the trace results<\/strong><\/p>\n<p>The type of results for a trace operation can be defined with\u00a0the\u00a0<a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/latest\/help\/data\/utility-network\/configure-a-trace.htm#ESRI_SECTION2_A4D0D10A7C904C278F61ACDEBFCEDDA5\"><span class=\"uicontrol\">Result Types<\/span><\/a> parameter when adding a named trace configuration to your utility network feature service.\u00a0The\u00a0<span class=\"uicontrol\">Aggregated Geometry and<\/span>\u00a0<span class=\"uicontrol\">Selection<\/span> result types can be specified independently or concurrently to generate output geometries and create a selection set for a trace.<\/p>\n<p>If Aggregated Geometry is specified, the results from the trace are aggregated by geometry type and displayed as a graphic layer on the map. Toggle the graphic layer on or off and change its display color.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1426922,"id":1426922,"title":"Show graphics","filename":"toggle-graphics.gif","filesize":1440020,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/toggle-graphics.gif","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script\/toggle-graphics","alt":"Toggle to show graphics on the map and change the color","author":"9772","description":"Toggle to show graphics on the map and change the color","caption":"Toggle to show graphics on the map and change the color","name":"toggle-graphics","status":"inherit","uploaded_to":1425162,"date":"2021-12-08 17:20:50","modified":"2021-12-08 17:21:36","menu_order":0,"mime_type":"image\/gif","type":"image","subtype":"gif","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1044,"height":556,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/toggle-graphics-213x200.gif","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/toggle-graphics.gif","medium-width":464,"medium-height":247,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/toggle-graphics.gif","medium_large-width":768,"medium_large-height":409,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/toggle-graphics.gif","large-width":1044,"large-height":556,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/toggle-graphics.gif","1536x1536-width":1044,"1536x1536-height":556,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/toggle-graphics.gif","2048x2048-width":1044,"2048x2048-height":556,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/toggle-graphics-826x440.gif","card_image-width":826,"card_image-height":440,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/toggle-graphics.gif","wide_image-width":1044,"wide_image-height":556}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p>If Selection is specified for the result type in the named trace configuration, then the results for the trace are returned as a selection set. Also, this is the default behavior if no result type is defined in the trace configuration. Use the checkbox to select and clear the features on the map and explore the list of selected features organized by <a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/latest\/help\/data\/utility-network\/utility-feature-classification.htm#GUID-A4CCEB96-C4F8-459B-A763-FF6A5791F663\">asset group and asset type<\/a>.<\/p>\n<p><em>Note: The list of selected features is only available if the <a href=\"https:\/\/developers.arcgis.com\/javascript\/latest\/api-reference\/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#showSelectionAttributes\">showSelectionAttributes<\/a> widget property is set to &#8216;true&#8217; for this application.<\/em><\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1426942,"id":1426942,"title":"Select results","filename":"selection-result.gif","filesize":1180767,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/selection-result.gif","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script\/selection-result","alt":"Select the results on the map and view the list of features","author":"9772","description":"Select the results on the map and view the list of features","caption":"Select the results on the map and view the list of features","name":"selection-result","status":"inherit","uploaded_to":1425162,"date":"2021-12-08 17:40:30","modified":"2021-12-08 17:41:06","menu_order":0,"mime_type":"image\/gif","type":"image","subtype":"gif","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1140,"height":686,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/selection-result-213x200.gif","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/selection-result.gif","medium-width":434,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/selection-result.gif","medium_large-width":768,"medium_large-height":462,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/selection-result.gif","large-width":1140,"large-height":686,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/selection-result.gif","1536x1536-width":1140,"1536x1536-height":686,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/selection-result.gif","2048x2048-width":1140,"2048x2048-height":686,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/selection-result-773x465.gif","card_image-width":773,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/selection-result.gif","wide_image-width":1140,"wide_image-height":686}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p>&nbsp;<\/p>\n<h3><strong>Upstream and Downstream example<\/strong><\/h3>\n<p>Following similar steps as in the water isolation example above, I can run different trace types such as Upstream and Downstream, and quickly visualize the results using different graphic colors.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1426962,"id":1426962,"title":"Upstream and Downstream traces","filename":"Upstream-Downstream.gif","filesize":824406,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/Upstream-Downstream.gif","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script\/upstream-downstream","alt":"Upstream and Downstream traces","author":"9772","description":"Run upstream and downstream traces and visualize the results using colored graphics","caption":"Run upstream and downstream traces and visualize the results using colored graphics","name":"upstream-downstream","status":"inherit","uploaded_to":1425162,"date":"2021-12-08 17:51:25","modified":"2021-12-08 17:52:12","menu_order":0,"mime_type":"image\/gif","type":"image","subtype":"gif","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1164,"height":780,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/Upstream-Downstream-213x200.gif","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/Upstream-Downstream.gif","medium-width":389,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/Upstream-Downstream.gif","medium_large-width":768,"medium_large-height":515,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/Upstream-Downstream.gif","large-width":1164,"large-height":780,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/Upstream-Downstream.gif","1536x1536-width":1164,"1536x1536-height":780,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/Upstream-Downstream.gif","2048x2048-width":1164,"2048x2048-height":780,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/Upstream-Downstream-694x465.gif","card_image-width":694,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/Upstream-Downstream.gif","wide_image-width":1164,"wide_image-height":780}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p>Ready to give it a try? Add the widget and a web map with named trace configurations to your web application, and leave no trace behind!<\/p>\n"}],"authors":[{"ID":9772,"user_firstname":"Alix","user_lastname":"Vezina","nickname":"Alix Vezina","user_nicename":"avezina","display_name":"Alix V\u00e9zina","user_email":"avezina@esri.com","user_url":"","user_registered":"2019-07-19 18:00:55","user_description":"Alix is a product engineer in web development at Esri, where she delivers innovative web mapping tools for various industries. She\u2019s passionate about customer success and combines her knowledge with practical experience to help solve problems and empower others to develop impactful applications that provide essential functionality.","user_avatar":"<img data-del=\"avatar\" src='https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/Alix-Vezina-Prefered-213x200.jpg' class='avatar pp-user-avatar avatar-96 photo ' height='96' width='96'\/>"}],"related_articles":[{"ID":1345902,"post_author":"7511","post_date":"2021-09-30 10:41:51","post_date_gmt":"2021-09-30 17:41:51","post_content":"","post_title":"What's new in Utility Network JavaScript API 4.21","post_excerpt":"","post_status":"publish","comment_status":"open","ping_status":"closed","post_password":"","post_name":"whats-new-in-utility-network-javascript-api-4-21","to_ping":"","pinged":"","post_modified":"2021-10-22 13:28:18","post_modified_gmt":"2021-10-22 20:28:18","post_content_filtered":"","post_parent":0,"guid":"https:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=1345902","menu_order":0,"post_type":"blog","post_mime_type":"","comment_count":"0","filter":"raw"},{"ID":1516332,"post_author":"9772","post_date":"2022-03-25 07:00:31","post_date_gmt":"2022-03-25 14:00:31","post_content":"","post_title":"Configure an Application to Trace a Utility Network","post_excerpt":"","post_status":"publish","comment_status":"open","ping_status":"closed","post_password":"","post_name":"configure-apps-to-trace-a-utility-network","to_ping":"","pinged":"","post_modified":"2025-03-06 10:26:15","post_modified_gmt":"2025-03-06 18:26:15","post_content_filtered":"","post_parent":0,"guid":"https:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=1516332","menu_order":0,"post_type":"blog","post_mime_type":"","comment_count":"8","filter":"raw"},{"ID":1566952,"post_author":"9772","post_date":"2022-05-05 11:00:46","post_date_gmt":"2022-05-05 18:00:46","post_content":"","post_title":"Trace your utility network versions with ArcGIS Experience Builder","post_excerpt":"","post_status":"publish","comment_status":"open","ping_status":"closed","post_password":"","post_name":"trace-utility-network-versions","to_ping":"","pinged":"","post_modified":"2024-11-13 15:47:22","post_modified_gmt":"2024-11-13 23:47:22","post_content_filtered":"","post_parent":0,"guid":"https:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=1566952","menu_order":0,"post_type":"blog","post_mime_type":"","comment_count":"0","filter":"raw"}],"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/banner-card.png","wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/large-banner2.png","show_article_image":false},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Trace a Utility Network with the ArcGIS API for JavaScript<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Trace a Utility Network with the ArcGIS API for JavaScript\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script\" \/>\n<meta property=\"og:site_name\" content=\"ArcGIS Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/esrigis\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-25T19:10:01+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@ESRI\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script\"},\"author\":{\"name\":\"Alix V\u00e9zina\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/e76ed2381f91fe0d28767bd0b2969fb5\"},\"headline\":\"Trace a Utility Network with the ArcGIS API for JavaScript\",\"datePublished\":\"2021-12-13T16:00:19+00:00\",\"dateModified\":\"2024-11-25T19:10:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script\"},\"wordCount\":10,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"keywords\":[\"ArcGIS API for JavaScript\",\"ArcGIS Utility Network\",\"trace\",\"trace javascript utility network\",\"Utility Network API\"],\"articleSection\":[\"Data Management\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script\",\"name\":\"Trace a Utility Network with the ArcGIS API for JavaScript\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\"},\"datePublished\":\"2021-12-13T16:00:19+00:00\",\"dateModified\":\"2024-11-25T19:10:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.esri.com\/arcgis-blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Trace a Utility Network with the ArcGIS API for JavaScript\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"name\":\"ArcGIS Blog\",\"description\":\"Get insider info from Esri product teams\",\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\",\"name\":\"Esri\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"width\":400,\"height\":400,\"caption\":\"Esri\"},\"image\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/esrigis\/\",\"https:\/\/x.com\/ESRI\",\"https:\/\/www.linkedin.com\/company\/5311\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/e76ed2381f91fe0d28767bd0b2969fb5\",\"name\":\"Alix V\u00e9zina\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/Alix-Vezina-Prefered-213x200.jpg\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/Alix-Vezina-Prefered-213x200.jpg\",\"caption\":\"Alix V\u00e9zina\"},\"description\":\"Alix is a product engineer in web development at Esri, where she delivers innovative web mapping tools for various industries. She\u2019s passionate about customer success and combines her knowledge with practical experience to help solve problems and empower others to develop impactful applications that provide essential functionality.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/alixbv\/\"],\"jobTitle\":\"Product Engineer\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/author\/avezina\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Trace a Utility Network with the ArcGIS API for JavaScript","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script","og_locale":"en_US","og_type":"article","og_title":"Trace a Utility Network with the ArcGIS API for JavaScript","og_url":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script","og_site_name":"ArcGIS Blog","article_publisher":"https:\/\/www.facebook.com\/esrigis\/","article_modified_time":"2024-11-25T19:10:01+00:00","twitter_card":"summary_large_image","twitter_site":"@ESRI","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script#article","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script"},"author":{"name":"Alix V\u00e9zina","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/e76ed2381f91fe0d28767bd0b2969fb5"},"headline":"Trace a Utility Network with the ArcGIS API for JavaScript","datePublished":"2021-12-13T16:00:19+00:00","dateModified":"2024-11-25T19:10:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script"},"wordCount":10,"commentCount":2,"publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"keywords":["ArcGIS API for JavaScript","ArcGIS Utility Network","trace","trace javascript utility network","Utility Network API"],"articleSection":["Data Management"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script","url":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script","name":"Trace a Utility Network with the ArcGIS API for JavaScript","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#website"},"datePublished":"2021-12-13T16:00:19+00:00","dateModified":"2024-11-25T19:10:01+00:00","breadcrumb":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/utility-network\/data-management\/trace-a-utility-network-with-arcgis-api-for-java-script#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.esri.com\/arcgis-blog\/"},{"@type":"ListItem","position":2,"name":"Trace a Utility Network with the ArcGIS API for JavaScript"}]},{"@type":"WebSite","@id":"https:\/\/www.esri.com\/arcgis-blog\/#website","url":"https:\/\/www.esri.com\/arcgis-blog\/","name":"ArcGIS Blog","description":"Get insider info from Esri product teams","publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization","name":"Esri","url":"https:\/\/www.esri.com\/arcgis-blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","width":400,"height":400,"caption":"Esri"},"image":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/esrigis\/","https:\/\/x.com\/ESRI","https:\/\/www.linkedin.com\/company\/5311\/"]},{"@type":"Person","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/e76ed2381f91fe0d28767bd0b2969fb5","name":"Alix V\u00e9zina","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/Alix-Vezina-Prefered-213x200.jpg","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/Alix-Vezina-Prefered-213x200.jpg","caption":"Alix V\u00e9zina"},"description":"Alix is a product engineer in web development at Esri, where she delivers innovative web mapping tools for various industries. She\u2019s passionate about customer success and combines her knowledge with practical experience to help solve problems and empower others to develop impactful applications that provide essential functionality.","sameAs":["https:\/\/www.linkedin.com\/in\/alixbv\/"],"jobTitle":"Product Engineer","url":"https:\/\/www.esri.com\/arcgis-blog\/author\/avezina"}]}},"text_date":"December 13, 2021","author_name":"Alix V\u00e9zina","author_page":"https:\/\/www.esri.com\/arcgis-blog\/author\/avezina","custom_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/12\/large-banner2.png","primary_product":"ArcGIS Utility Network","tag_data":[{"term_id":96582,"name":"ArcGIS API for JavaScript","slug":"arcgis-api-for-javascript","term_group":0,"term_taxonomy_id":96582,"taxonomy":"post_tag","description":"","parent":0,"count":58,"filter":"raw"},{"term_id":565442,"name":"ArcGIS Utility Network","slug":"arcgis-utility-network","term_group":0,"term_taxonomy_id":565442,"taxonomy":"post_tag","description":"","parent":0,"count":87,"filter":"raw"},{"term_id":24831,"name":"trace","slug":"trace","term_group":0,"term_taxonomy_id":24831,"taxonomy":"post_tag","description":"","parent":0,"count":13,"filter":"raw"},{"term_id":760932,"name":"trace javascript utility network","slug":"trace-javascript-utility-network","term_group":0,"term_taxonomy_id":760932,"taxonomy":"post_tag","description":"","parent":0,"count":3,"filter":"raw"},{"term_id":660431,"name":"Utility Network API","slug":"utility-network-api","term_group":0,"term_taxonomy_id":660431,"taxonomy":"post_tag","description":"","parent":0,"count":7,"filter":"raw"}],"category_data":[{"term_id":23851,"name":"Data Management","slug":"data-management","term_group":0,"term_taxonomy_id":23851,"taxonomy":"category","description":"","parent":0,"count":920,"filter":"raw"}],"product_data":[{"term_id":36831,"name":"ArcGIS Maps SDK for JavaScript","slug":"js-api-arcgis","term_group":0,"term_taxonomy_id":36831,"taxonomy":"product","description":"","parent":36601,"count":362,"filter":"raw"},{"term_id":515312,"name":"ArcGIS Utility Network","slug":"utility-network","term_group":0,"term_taxonomy_id":515312,"taxonomy":"product","description":"","parent":36981,"count":141,"filter":"raw"}],"primary_product_link":"https:\/\/www.esri.com\/arcgis-blog\/?s=#&products=utility-network","_links":{"self":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/1425162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/users\/9772"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/comments?post=1425162"}],"version-history":[{"count":0,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/1425162\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/media?parent=1425162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/categories?post=1425162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/tags?post=1425162"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/industry?post=1425162"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/product?post=1425162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}