Available with the ArcGIS Indoors Maps extension.
Barriers are features that reflect temporary changes to the network (for example, due to building renovations or repair work). Indoor Viewer honors barriers that are present when routing between locations if they are included in your web map.
The default barrier type is a restriction barrier, which means directions avoid going through the barrier and route around it. You can also configure cost barriers to allow routing through barriers, with an added delay that affects the travel time.
Barriers can be point, line, or polygon features. Consider the following when determining which type of barrier to create:
- You can configure point barriers as floor aware and apply them to a specific level of a facility when a barrier exists on a single level. For example, if the west wing of a building's third floor is under construction, you can place floor-aware point barriers at the entrances to the west wing on only the third floor.
- Line and polygon barriers cannot be configured as floor aware and are applied to all levels of a facility. Barriers that are not floor aware can be used when the same area is affected on all levels in a facility, such as elevators or stairwells that are closed for maintenance, or for outdoor barriers, such as closed parking lots or construction zones.
- You can configure all barrier layers as time aware.
You can include barrier features as a feature service–based layer from your ArcGIS organization. Changes made to feature service-based barrier layers are instantly available in the Viewer app.
You can add and configure barriers to your Viewer map from stand-alone feature classes or from network analysis layers.
Create barriers from a stand-alone feature class
To create barriers from a stand-alone feature class, complete the steps below. Barriers created in this way are restriction barriers.
- Open the Viewer map in ArcGIS Pro.
- Right-click the Indoors workspace in the Catalog pane and click New > Feature Class.
Alternatively, you can create the features in an indoor dataset.
- Create a point, line, or polygon feature class for the barrier features based on your organization’s needs.
You can create up to one of each.
Note:
Only the OBJECTID and SHAPE fields are required. You can add more fields to store details based on your organization's needs.
- Add the feature class to your map and change symbology as needed.
- Name the layer one of the following: Point Barriers, Line Barriers, or Polygon Barriers.
Note:
You can only include one layer of each type in your Viewer map. For example, there cannot be two Point Barriers layers in the map.
- Create point, line, or polygon features or copy existing features.
Tip:
You can temporarily turn on the visibility of the Pathways layer to aid in visualization while creating barriers. Turn on snapping to control the accuracy of the pointer when creating barrier features.
- Optionally, configure the point barriers as floor aware.
Note:
Only point barriers can be configured as floor aware.
- Optionally, configure the barriers as time aware.
- Save the map.
- Share the web map for use in the Viewer app.
The route between two locations will now avoid these barrier locations and go around them when providing directions in the Viewer app.
Create barriers from network analysis layers
To create restriction or cost barriers using network analysis layers, complete the following steps:
- Open the Viewer map in ArcGIS Pro.
- Create a route analysis layer by completing the following:
Note:
If you already created a route analysis layer in the same Indoors workspace, you do not need to create a new one.
- On the Analysis tab, in the Workflows group, click Network Analysis > Route.
The Route group layer is added to the Contents pane. It includes several sublayers that hold the inputs and outputs of the analysis.
- Right-click the Route layer, click Properties, and click Source.
Note the analysis data source location that is displayed. This is the file location of the Route layer.
- Remove the Route group layer from the Contents pane.
- On the Analysis tab, in the Workflows group, click Network Analysis > Route.
- Browse to the Route layer in the Catalog pane and add only the point, line, and polygon barrier layers to the map.
Note:
You may need to refresh the Catalog pane to view the analysis layers.
- On the Edit tab, click Create.
The Create Features pane appears.
- In the Create Features pane, click the layer where you want to add barriers and create point, line, or polygon features.
- On the Edit tab, in the Selection group, click Attributes.
The Attributes pane appears.
- Choose the type of barrier to create from the BarrierType drop-down menu:
- Restriction—This is the default. Directions avoid going through the barrier and route around it.
- Added Cost—A delay is added to the route for a point barrier.
- Scaled Cost—A delay is added to the route for a line or polygon barrier.
- For cost barriers, set the following attributes as needed to increase travel time when passing through the barrier:
- Added Cost—Set a value for the Attr_WalkTime attribute.
- Scaled Cost—Set values for the Attr_WalkTime and Attr_Length attributes.
- Optionally, configure the point barriers as floor aware.
Note:
Only point barriers can be configured as floor aware.
- Optionally, configure the barriers as time aware.
- Save the map.
- Share the web map for use in the Viewer app.
The travel time will now be adjusted when routing through these barriers in the Viewer app.
Configure floor-aware point barriers
If you configured your map as floor aware, you can configure point barriers as floor aware.
- Right-click the Point Barriers layer and click Design > Fields.
- Add a new field named LEVEL_ID of type Text.
- Click Save and close the Fields pane.
- Double-click the point barrier layer in the Contents pane to open the Layer Properties dialog box.
- Click the Floors tab and set the LEVEL_ID field for the Floor Field parameter.
- Right-click the Point Barriers layer and click Design > Fields.
- Add a value to the LEVEL_ID field for each barrier feature that matches the LEVEL_ID value of the level on which the barrier is located.
The Point Barriers layer is now configured as floor aware, and you can use the floor filter to visualize barrier data. Floor-aware point barriers are honored in the Viewer app for directions that route through the level on which they are located.
Note:
If you have multiple pathways that run parallel in a hallway, you need to place multiple point barriers.
Configure time-aware barriers
You can configure all barrier layers as time aware. The Viewer app honors the barrier features if the directions are generated within the specified date and time. If directions are generated outside of the specified date and time range, the Viewer app ignores the barriers even if they are present in the map.
To make the barrier layers time aware, complete the following steps:
- Right-click the barrier layer and click Design > Fields.
- Add a new field named START_TIME of type Date if the feature class does not have a field for start time.
- Add a new field named END_TIME of type Date if the feature class does not have a field for end time.
- Click Save and close the Fields pane.
- Right-click the barrier layer, click Properties, and click the Time tab.
- Click the Layer Time drop-down arrow and choose Each feature has start and end time fields.
- Set the Start Time Field and End Time Field parameters.
Note:
If no end time field is defined or if the end time field is defined but no value is specified, the barrier is considered valid indefinitely beginning from the start time.
- Click OK.
- Right-click the barrier layer and click Attribute Table.
- Add values to the START_TIME and END_TIME fields as needed.
Time values must be in UTC.
The barrier layer is now time aware and barriers will be used for routing in the Viewer app based on the configured start and end times.