Create route layers

As a member of an organization with privileges to perform network analysis, you can use Map Viewer to get a set of turn-by-turn driving or walking directions and see the route on the map. You can set the travel mode, add multiple stops, and choose a departure time. You can also configure the route and, if you have the appropriate privileges, save and share the route.

Create a route layer

To create a route layer on the map, complete the following steps:

  1. Confirm that you are signed in to your organization with privileges to perform network analysis.
  2. In Map Viewer, on the Settings (light) toolbar, click Map tools Map tools and choose Directions Directions.
  3. In the Directions window, specify an origin and one or more stops as follows:
    Tip:

    If a drop-down arrow is available next to the stops, you have multiple search resources for finding destinations. These resources can include locators configured by the organization and layers enabled by the map author to find features on the map. By default, the search is performed on all available resources. Alternatively, select the resources you want to use to find stops for your route.

    1. In the Directions pane, enter the route origin and a stop.

      A route summary and turn-by-turn directions appear in the Directions pane, the route is displayed on the map, and a route layer appears in the Layers pane.

      Tip:

      To use your current location as the origin or a stop, click in the empty field and click Use current location. To use a location on the map, click Pick a location on the map Pick a location on the map and click a point on the map. Press Esc to cancel the selection.

    2. Optionally, click Add stop and enter an address in the new field to add a stop to the route. Repeat this step for each stop you want to include.

      You can also add stops from pop-ups with location information such as points from feature layers and addresses and places you find with the search box. A route can include up to 49 stops (and an origin).

  4. Optionally, click Edit route and do any of the following:
    • Turn off the Automatically solve toggle button to prevent the route from automatically routing to stops and around barriers placed on the map.
    • Click Stop and click a point on the map to place a stop.
    • Click Barrier and click a point on the map to place a vertex. Double-click or use a keyboard shortcut to place the final vertex and complete the line or polygon. Optionally, click a barrier on the map to select it, then drag the handles to resize or rotate it.
      Tip:

      You can use keyboard shortcuts to quickly complete common workflows in Map Viewer. To view the full list of keyboard shortcuts in Map Viewer, press Alt+? on Microsoft Windows or Option+? on Mac.

    • Click Solve to route around stops and barriers.
    • Click a stop or barrier on the map to select it, then click and drag to move it on the map. Click Delete Delete to remove a selected stop or barrier.
    • Click Done to return to the Directions pane.
  5. Do any of the following to make changes to the stops:
    • If there are two or fewer stops, click Reverse stops Reverse stops to reverse the order of stops in the route.
    • Drag the address fields using the Reposition handles Reposition to reorder a route with an origin and two or more stops.
    • Click Remove Remove to clear a stop if your route includes an origin and one stop. Click Delete stop Delete stop to remove a stop if your route includes an origin and two or more stops.
  6. Optionally, choose a travel mode from the drop-down menu to change it. The default travel mode is set by your organization. The following options are available:

    ModeDescription

    Driving Time

    Models the movement of cars and other similar small automobiles, such as pickup trucks, and finds solutions that optimize travel time. Travel obeys one-way roads, avoids illegal turns, and follows other rules that are specific to cars. When you specify a start time, dynamic travel speeds based on traffic are used where this functionality is available.

    Driving Distance

    Models the movement of cars and other similar small automobiles, such as pickup trucks, and finds solutions that optimize travel distance. Travel obeys one-way roads, avoids illegal turns, and follows other rules that are specific to cars.

    Trucking Time

    Models basic truck travel by preferring designated truck routes and finds solutions that optimize travel time. Routes must obey one-way roads, avoid illegal turns, and so on. When you specify a start time, dynamic travel speeds based on traffic are used where this functionality is available, up to the legal truck speed limit.

    Trucking Distance

    Models basic truck travel by preferring designated truck routes and finds solutions that optimize travel distance. Routes must obey one-way roads, avoid illegal turns, and so on.

    Walking Time

    Follows paths and roads that allow pedestrian traffic and finds solutions that optimize travel time. The walking speed is set to 5 kilometers per hour.

    Walking Distance

    Follows paths and roads that allow pedestrian traffic and finds solutions that optimize travel distance.

    Rural Driving Time

    Models the movement of cars and other similar small automobiles, such as pickup trucks, and finds solutions that optimize travel time. Travel obeys one-way roads, avoids illegal turns, and follows other rules that are specific to cars but does not discourage travel on unpaved roads. When you specify a start time, dynamic travel speeds based on traffic are used where this functionality is available.

    Rural Driving Distance

    Models the movement of cars and other similar small automobiles, such as pickup trucks, and finds solutions that optimize travel distance. Travel obeys one-way roads, avoids illegal turns, and follows other rules that are specific to cars but does not discourage travel on unpaved roads.

  7. Choose a departure option as follows:
    1. Choose Leave now, Depart at, or Time unspecified from the drop-down menu.
    2. If you chose Depart at, specify a departure date and time.
  8. The departure time is set in the time zone of the place of departure. The time zone of the final stop is used for the arrival and departure times displayed in the turn-by-turn directions.

    The route and directions are updated according to the options you specified. The information displayed in the route summary depends on several factors: the travel mode selected, the departure option chosen, and whether your route is in a supported network coverage area. If you selected a travel mode that supports traffic (Driving Time or Rural Driving Time) and your route is in a supported network coverage area, the route summary displays a time estimate. If you also chose the Leave now option, current traffic is used to calculate the travel time shown. If you instead chose Depart at, predictive, observed, or historical traffic calculations are used (depending on the start time specified).

  9. Optionally, turn on the Optimize order toggle button to optimize the order of stops. Turn on the Preserve first stop toggle button to preserve the first stop in the route order. Turn on the Preserve last stop toggle button to preserve the last stop in the route order.
  10. Optionally, do any of the following to use the route:
    • Click the route result to review the turn-by-turn directions between stops. Click Zoom to selection Zoom to selection to zoom to a stop on the map. Click Back Back to return to the Directions pane to make changes to the route as needed, including adding stops, changing the travel mode, and so on.
    • To print the route map, on the Contents (dark) toolbar, click Print (the route map does not include driving directions).
    • Click Options Options and click Clear to start over and create a new route.

Configure a route

After you create a route using the Directions pane in Map Viewer or add an existing route layer to a map, you can configure the route in various ways, such as applying effects or transparency. You can then save the route layer for reuse in other maps or share it with others if you have the appropriate privileges.

To configure a route, complete the following steps:

  1. Create a route using the Directions pane, or add an existing route layer to a map.
  2. In the Layers pane, select the route layer if it is not already selected.
  3. Configure the route by doing any of the following to the route layer:

Save the route

If you have privileges to create content, you can save the route as a route layer item in My Content. You can also save the layer with the map.

Tip:

After saving the route, you can get more information about each route segment by clicking the segment on the map to display its pop-up information. You can also click Zoom to on the pop-up to get a closer look at the segment.

To save the route layer, complete the following steps:

  1. In the Layers pane, click Options Options next to the route layer and click Save as.
  2. Add information for the new route layer item by doing the following:
    • Provide a title.
    • Choose a folder in My Content where you want to save the layer.
    • If your organization has set up content categories, select categories to help others find the layer.
    • Provide tags and a summary that describe the layer.
  3. Click Save.

    The route layer is saved with the specified name in My Content.

    Tip:

    To change the name of the layer in the Layers pane, click Options next to the layer and click Rename. Provide a title for the layer and click OK.

  4. To save additional changes to the route, click Options next to the layer in the Layers pane and click Save.

    If you have sharing privileges, you can share the route after saving it. In the Properties pane, click the item name to open the item page. On the item page, click Share to configure sharing settings for the route layer. Depending on their privileges and the way you shared the item, others can add the route layer to a new or existing map, configure it, and save the updated route as a new route.