Using lines to display relationships between locations in a Map widget

Once you create a Map widget for the iPhone or iPad, you can show relationships between locations on the map when the widget is displayed on an iPhone or iPad. To do this, you display lines between the map markers. You can choose to display these lines using different thicknesses or colors depending on the relationship between locations.

For example, in the image below, a series of airports is displayed in a widget. The flights between the airports are displayed as lines, with thick lines representing flights with many passengers, and thin lines representing flights with few passengers.

Example of a Map widget with straight lines displayed

To display lines between markers in a Map widget in a document, you must provide a total of two Grid/Graphs, as follows:

Prerequisite

To display lines between map markers in a Map widget

  1. Open the document in Design or Editable Mode.

  2. Right-click the Grid/Graph used to display the Map widget, then select Properties and Formatting. The Properties and Formatting dialog box is displayed.

  3. From the left, click Advanced, then clear the Enable incremental fetch on grid check box.

  4. Click OK to save your changes.

  5. From the Insert menu, point to Grid/Graph.

  6. Click the location on your document in which you want to place the Grid/Graph. This Grid/Graph will not be visible when the widget is displayed on the iPhone or iPad, and should be in the same document section as the Grid/Graph used to display the Map widget.

  7. From the Dataset Objects panel on the left, select attributes and metrics, and drag them on top of the Grid/Graph, as described below.

  8. The ID attribute form of each attribute should be displayed in the Grid/Graph you just created. If you provided the location of each map marker in the Map widget using attribute forms, the Latitude, Longitude, and ID attribute forms of the location attribute should be displayed in the Grid/Graph used to display the Map widget. If they are not displayed, for each attribute, right-click the header of the attribute, point to Attribute Forms, then select the attribute forms you want to display.

  9. If you provided the location of each map marker in the Map widget using attributes, you must include the lookup attribute on both the Grid/Graph of the Map widget, and the Grid/Graph that you just created to display lines between the map markers. Place the lookup attribute on the rows of the Map widget's Grid/Graph, directly before or directly after the attributes providing the latitude and longitude of each map marker.

  10. Right-click the Grid/Graph of the Map widget, then select Properties and Formatting. The Properties and Formatting dialog box is displayed.

  11. From the left, click Advanced.

  12. Clear the Enable incremental fetch on grid check box, then click Apply.

  13. From the left, select Widget.

  14. Click the Widget Properties icon Widget Properties icon. The Map Properties dialog box opens.

  15. To enable the display of lines, select the Display Affinity Lines/Arcs check box.

  16. If the Use Attribute or Form option is set to Use Attribute, from the Select Lookup Attribute drop-down list, select the lookup attribute.

  17. From the Select Affinity Data drop-down list, select the Grid/Graph you created using these steps.

  18. From the Draw Arcs/Lines drop-down list, select one of the following:

  19. From the Max Line Thickness drop-down list, select the maximum thickness that can be used to display lines in the widget. The thickness of each line is automatically determined based on the value of the first metric on the new Grid/Graph's rows. You can specify a maximum thickness of 8. The default value is 5.

  20. Click OK to return to the Properties and Formatting dialog box.

  21. Click OK to save changes and return to the document.

Related topic