Add Line Event widget

The Add Line Event widget allows you to create line events along routes in a Linear Referencing System (LRS). You can use the widget to manage pipeline data with ArcGIS Pipeline Referencing and roadway data with ArcGIS Roads and Highways. You can represent characteristics of a route, such as operating pressure for a pipeline or lane information for a road, as line events.

Note:

All Location Referencing widgets support express mode. When you create an app in express mode, all Location Referencing widgets are automatically configured based on the web map added to the Map widget. Any modifications made in the Map widget, such as changing the web map, will instantly be reflected in the Location Referencing widgets. Express mode allows you to efficiently set up Location Referencing widgets within ArcGIS Experience Builder, streamlining the deployment process for apps that contain Location Referencing widgets.

Learn more about express mode

Examples for Pipeline Referencing

Use this widget to support app design requirements such as the following:

  • You are a pipeline inspector and want to add inspection notes information for a pipe that is under maintenance.
  • You want to add a new event feature and retire the overlapping section of a previous feature.
  • You want to add operating pressure and DOT Class information in one editing session.

Examples for Roads and Highways

Use this widget to support app design requirements such as the following:

  • You want to add lane information for a freeway.
  • You want to add a new median to a route and retire the overlapping section of the previous median.
  • You want to add parking and access control information in one editing session.

Usage notes

This widget requires connection to a Map widget. To add line events, the Map widget must be connected to a web map data source with an LRS published with the Linear Referencing and Version Management capabilities enabled.

To create an LRS and publish a feature service with the Linear Referencing and Version Management capabilities enabled, follow the steps in the ArcGIS Pro documentation:

To use the Add Line Event widget with a feature service published to ArcGIS Enterprise, you must be signed in with an ArcGIS Enterprise account.

When you include this widget in an app, a panel provides users with the following parameters for adding a line event:

  • Type—Choose to add single or multiple line events.
    • Single Line—Add a single line event.
    • Multiple Line—Add multiple line events in one edit activity.
  • Event (appears when you choose Single Line under Type)—Choose the event layer from which to add a line event.
  • Network—This label lists the network layer that is associated with the line event layer.
  • Attribute Set (appears when you choose Multiple Line under Type)—Attribute sets are collections of event layer attributes. If a feature service is configured with attribute sets for Pipeline Referencing or attribute sets for Roads and Highways, you can choose one from the drop-down menu. The widget only displays line events that are part of the attribute set. You can use attribute sets to create multiple events with a set of additional, organization-specific attributes in a single edit.
  • From Method—The method the widget uses to specify the starting location of the line events to be added is listed here.
    • Route and Measure—Specify the starting location of the added line event using a specific measure along a route.
      • From Route ID or From Route Name—Provide the route ID or name of the route you want to use to define the line event starting point. If the network layer has route name configured as an identifier, this setting is labeled asFrom Route Name.
      • From Measure—Provide a measure value for the line event starting point. The measure value defines the exact location on the route where the line event starts. The label for this parameter also displays the unit of measure defined by the network layer. For example, if the unit of measure is meters, this setting is labeled From Measure (Meters) at run time.
  • To Method—The method the widget uses to specify the ending location of the line events to be added is listed here.
    • Route and Measure—Specify the ending location of the added line event using a specific measure along a route.
      • To Route ID or To Route Name—Provide the route ID or name of the route you want to use to define the line event ending point. If the network layer has route name configured as an identifier, this setting is labeled asTo Route Name. This option is only available when either the chosen event layer is a spanning line event or the chosen attribute set includes a spanning line event layer.
      • To Measure—Provide a measure value for the line event ending point. The measure value defines the exact location on the route where the line event ends. The label for this parameter also displays the unit of measure defined by the network layer. For example, if the unit of measure is meters, this setting is labeled To Measure (Meters) at run time.
  • Start Date—Specify the start date of the event or events.
  • End Date—Specify the end date of the event or events.
  • Merge coincident events—Merge edited events that have exactly the same attributes as an existing event and are adjacent to or overlapping with that existing event in terms of measure values.
  • Retire overlapping events—Retire existing events that overlap with the new events.
  • Add event to dominant route—Add events to the dominant route where route concurrencies exist.

Settings

The Add Line Event widget includes the following settings:

  • Mode—Choose a method of loading data.
    • Select Layers—Select a Map widget and load all layers from the web map.
      • Select a Map widget—Select a Map widget in the page that's connected to a web map.
      • Load layers—Load layers from the web map in the connected Map widget. To load layers, the Map widget must be connected to a web map that contains LRS layers.
      • Clear layers—Remove all loaded layers from the widget.
      • Layers—After loading layers, you can click the down arrow to expand the list of layers. Click a layer to open the Layer Configuration panel.
      • Layer Configuration—Configure settings for individual layers.
        • LRS Network and intersection layers:
          • Label—Provide a meaningful label for the layer. This label appears in the widget panel at run time.
        • LRS event layers:
          • Label—Provide a meaningful label for the layer. This label appears in the widget panel at run time.
          • Use Field Alias—Turn on this setting to display field aliases at run time. An alias, or display name, is an alternative name for a field. It is usually a more user-friendly description of the content of the field. Unlike true field names, aliases do not have to adhere to the limitations of the database, so they can contain special characters such as spaces.
          • Configure Fields—Choose which attribute fields from the layer to include in the widget panel at run time. You can define whether each attribute field is editable at run time by clicking Editable or Not editable.
            Note:

            The settings you define under Configure Fields only apply when the user is adding a single line event. For multiple line events, fields display if they are included in the attribute set the user chooses at run time.

    • Interact with a Map widget—Connect the Add Line Event widget to a Map widget. Any web maps in the connected Map widget appear in the list. After connecting to a Map widget, you can click the down arrow next to the Select Layers  button Select layers to expand the list of layers. Click a layer to open the Layer Configuration panel.
      • Layer Configuration—Configure settings for individual layers. Review the settings available in the Layer Configuration panel.
      • Select Layers—Click the Select Layers button Select layers to open the Select Layers panel. You can select or unselect layers from the list in the panel.
  • Default Settings—Configure the default settings that you want available in the widget when it first loads.
    • Event (Single Line)—Choose the default event layer for adding a single line event.
    • Network (Multiple Line)—Choose the default network layer for adding multiple line events. When the user is adding a single line event, the network is always the registered network for the selected event layer.
    • From Method—The method the widget uses to specify the starting location of the line events to be added.
      • Route and Measure—If you choose this method, the widget specifies the location of the line events to be added using the route name and measure value that the user provides.
    • To Method—The method the widget uses to specify the ending location of the line events to be added.
      • Route and Measure—If you choose this method, the widget specifies the location of the line events to be added using the route name and measure value that the user provides.
    • Type—Choose whether the widget is set to add single events or multiple events.
    • Attribute Set—If a layer is configured with attribute sets for Pipeline Referencing or attribute sets for Roads and Highways, you can choose a default one from the drop-down menu. The widget only displays line events that are part of the attribute set. Attribute sets are collections of event layer attributes. You can use attribute sets to create multiple events with a set of additional, organization-specific attributes in a single edit.
  • Display Settings—Choose which settings to display in the widget panel at run time. If you choose to hide a setting here, the widget settings you configure under Default Settings are unchangeable by the user at run time.
    • Hide Type—Hide the Type setting from the widget panel.
    • Hide Event—Hide the Event setting from the widget panel.
    • Hide Network—Hide the Network setting from the widget panel.
    • Hide Method—Hide the From Method and To Method settings from the widget panel.
    • Hide Attribute Set—Hide the Attribute Set setting from the widget panel.
    • Hide Measures—Hide the From Measure and To Measure settings from the widget panel.
  • Concurrency Settings—Choose the settings for adding events to the dominant route in the widget panel at run time.
    • Hide Add to Dominant Route Option—Hide the Add event to dominant route option from the widget panel.
    • Enable Add to Dominant Route Option—Enable the Add event to dominant route option from the widget panel.
    • Don't allow override of event placement on dominant routes—Turn on this setting to allow the user to add events to the dominant route by default.

Add a line event by route and measure

Complete the following steps to add a line event using the Route and Measure method.

  1. Start Experience Builder. Sign in to an ArcGIS Enterprise portal.
  2. Add a Map widget. Connect it to a web map with LRS data published with the Linear Referencing capability enabled and the Version Management capabilities enabled.
  3. Add an Add Line Event widget. Connect it to the Map widget, then load LRS layers from the Map widget.
  4. Publish the app.
  5. Launch the app. If prompted, sign in to your ArcGIS Enterprise portal.
  6. Zoom to the location where you want to add a line event.

    Note:
    To zoom to route locations, you can use the Search By Route widget or use data actions with the Search By Route widget or Table widget.

  7. Open the Add Line Event widget.
    The Add Line Event widget panel
    The first image is an example of the Add Line Event widget panel with Pipeline Referencing data. The second image is an example of the Add Line Event widget panel with Roads and Highways data.

    You can also use data actions to add line events.

  8. Use the default type or click the Type drop-down arrow and change the type, if necessary.
  9. If Type is set to Single Line, use the default line event layer or click the Event drop-down arrow and choose another line event layer.

    If Type is set to Multiple Line, you can use the default attribute set or choose another attribute set.

    The value that appears under the Network parameter is based on the chosen event layer.

  10. Specify the starting location for the line event by doing one of the following:
    • Provide a route name in the From Route Name text box.
    • Click the route picker Route picker, then click a route on the map.

    The From Measure value populates based on the location you click. Once you provide a start measure value, a green point appears at that location on the map.

  11. Optionally, change the start measure value by doing one of the following:
    • Provide a measure value in the From Measure text box.
      Note:

      Stationing measure values are also supported.

    • Click the measure picker Measure picker, then click a point along the route.
  12. Specify the ending location for the line event by doing one of the following:
    • For events on a non-line network or non-spanning events on a line network, click the measure picker Measure picker, then click the point on the route where you want the line event to end.

      The To Route Name parameter value defaults to the From Route Name parameter value and cannot be changed. If you need to change the To Route Name parameter value, provide a new route name under the From Route Name parameter.

    • For spanning events on a line network, accept the default name for To Route Name, or change the ending route by providing another route name in the To Route Name text box.

      Alternatively, click the route picker Route picker, then click the point on the route where you want the line event to end.

      Note:

      The From Route and To Route values must be on the same line.

    Once you provide an ending measure value, a red point appears at that location on the map.

  13. Optionally, specify a new end measure value by doing one of the following:
    • Provide a measure value in the To Measure text box.
      Note:

      Stationing measure values are also supported.

    • Click the measure picker Measure picker and click the measure value along the route on the map.
  14. Specify the start date of the event by doing one of the following:
    • Leave the default start date, which is the current date.
    • Provide a start date in the Start Date text box.
    • Click the calendar button Calendar and choose a start date.
    • Check the Use route start date check box.
  15. Optionally, specify the end date for the line event by doing one of the following:
    • Provide an end date in the End Date text box.
    • Click the calendar button Calendar and choose an end date.
    • Check the Use route end date check box.
      Note:

      If you do not provide an end date, the event remains valid from the route start date into the future.

  16. Choose a data validation option to prevent erroneous input while characterizing a route with line events.
  17. If route concurrencies exist, you can add line events to the dominant route.

    Concurrent routes are routes that share the same centerlines. This relationship may exist to model two routes with different directions of calibration. Where these concurrent routes exist, you can use a set of rules to choose a route that's considered dominant.

    For example, in the diagram below, there are three routes with route IDs of 100, 200, and 300.

    Three routes with route IDs of 100, 200, and 300 with dominant routes identified by section

    The route dominance rule is set such that the lesser the route name, the more dominant the route. Using this condition, route 100 is the most dominant route, and routes 200 and 300 have the same order of dominance.

    SectionDescription

    1

    Route 200 is the dominant route because no other route exists in this section; the event is added to route 200.

    2

    Route 100 has the greater order of dominance; the event is added to route 100.

    3

    Both route 200 and route 300 have the same order of dominance; the event is added to the route of your choice.

    4

    Route 200 is the dominant route because no other route exists in this section; the event is added to route 200.

    Learn more about adding line events to the dominant route in Pipeline Referencing

    Learn more about adding line events to the dominant route in Roads and Highways

  18. Click Next.

    The attributes for the chosen line event layer appear in a second pane.

  19. Provide attribute values for the event layer.

    For multiple events, an attribute set can contain events associated with different networks. Only events associated with the selected network appear.

    For multiple events, use the check boxes of the event layers to include or exclude them in the edit activity. Unselected events will not be added.

    For multiple events, whether an event field is visible and editable depends on the configuration of the attribute set. The event configuration for single events does not apply when adding multiple events.

    You can use the Copy Attributes tool to copy attributes from an existing event.

    Manage event attributes
    The first image is an example of the Add Line Event widget panel with Pipeline Referencing data. The second image is an example of the Add Line Event widget panel with Roads and Highways data.
  20. Click Save.

    A confirmation message appears on the tool pane once the new line event is added and appears on the map.

Interaction options

You can use data actions in other widgets to launch the Add Line Event widget and populate associated values. To use data actions, the network in the source widget must have associated line events, the data action options of Add Line Event in the source widget must be turned on, and the Add Line Event widget must be configured in the experience.

The following widgets support data actions of the Add Line Event widget:

  • LRS Identify widget—Data action populates the event or attribute set, network, route, measure, and date options.
  • Search By Route widget—Data action populates the event or attribute set, network, route, measure, and date options.
  • Table widget—Data action populates the event or attribute set, network, route, and date options.

Note:

You can change any values after they are populated. If you do so, the Add Line Event widget still validates all entries.

Run data actions with the Search By Route widget

To use the data action at run time with the Search By Route widget, complete the following steps:

  1. Select a record in the Search By Route results.
  2. Click the Action button at the top of the Search By Route widget panel.
  3. Add a line event by doing one of the following:
    • Click Add Line Event, provide an ending measure value in the To Measure option, and attributes for the new line event.

      The Event, Network, From Route ID or From Route Name, From Measure, To Route ID or To Route Name, Start Date, and End Date parameters populate based on the selected route from the Search By Route widget.

    • If the searched result contains a route with two measure values, click Add Line Event.
      The Add Line Event data action

      The Event, Network, From Route ID or From Route Name, From Measure, To Measure, To Route ID or To Route Name, Start Date, and End Date parameters populate based on the selected route from the Search By Route widget.

    • If the searched result contains a route with a single measure value, choose Add Line Event (from) to be the start measure or Add Line Event (to) to be the end measure of the line event to be added.
      The Add Line Event (to) data action

      If you chose Add Line Event (from), the From Measure value populates and you must provide a To Measure value.

      If you chose Add Line Event (to), the To Measure value populates and you must provide a From Measure value.

      The Event, Network, From Route ID or From Route Name, From Measure or To Measure, To Route ID or To Route Name, Start Date, and End Date parameters populate based on the selected route from the Search By Route widget.

Note:

You can change any values after they are populated. If you do so, the Add Line Event widget still validates all entries.

Run data actions with the Table widget

To use the data action at run time with the Table widget, complete the following steps:

  1. Select a record in the Table widget.
  2. Click the Action button at the top of the Table widget panel.
  3. Click Add Line Event.

    The Event or Attribute Set, Network, Route ID or Route Name, and Event OID parameters populate based on the selected event from the table.

  4. For a non-line network, select a route.

    The route you select populates both From Route and To Route values. You need to populate the measure values to add the events.

  5. For a line network, select one or two routes on the same line.

    If two routes are selected for a spanning event or events in an attribute set, they populate the From Route and To Route values according to their line order. You must populate the measure values to add the events.

The From Date and To Date values are populated using the start and end dates of the searched route, or the route with the lower line order if two routes are selected.

Note:

You can change any values after they are populated. If you do so, the Add Line Event widget still validates all entries.

Run data actions with the LRS Identify widget

To use the data action at run time with the LRS Identify widget, complete the following steps:

  1. Click on a specific location on a route using the LRS Identify widget.
  2. Click the Action button at the top of the LRS Identify widget panel.
  3. Click Add Line Event.

    The Event, Network, Route ID or Route Name, Measure, Start Date, and End Date parameters are populated based on the route and location from the LRS Identify widget.