Defining an Information Window for a Map widget

When a user selects a map marker in a Map widget, an informational window with a default layout is displayed. This Information Window provides additional details about the location, such as the name of the location and related metric values, as shown in the image below.

Example of a default Information Window

You can create and format a custom Information Window to display, as shown in the image below.

Example of a custom Information Window

To create a custom Information Window for:

Once you have created the layout or panel stack to use to display the Information Window, you can add content to this layout or panel stack to be displayed in the widget. You can add any controls to the layout or panel stack, including text fields, Grid/Graphs, images, shapes, and so on. For an overview of controls that can be added, see About creating documents. The container that displays the Information Window on the iPhone is 1.5 inches wide. Its height is defined to fit to the content, with a maximum height of 1 inch.

The following are suggestions for controls to add to an Information Window:

Prerequisite

To define a custom Information Window for a Map widget displayed on the iPhone

  1. Open the document in Design or Editable mode.

  2. From the Insert menu, select Layout. The Insert Layout dialog box opens.

  3. Do one of the following to create the new layout:

  4. Note: You can create your own document or dashboard templates by saving a document in the Object Templates\Documents (for documents) or Object Templates\Dashboard (for dashboards) directory in Desktop. For detailed steps to save a document as a template, see the Desktop Help.

  5. Click OK. The new layout is displayed.

  6. To display specific information about a location when the user selects its map marker in the widget, you must group the data in the layout by the Map widget's location attribute. In the Dataset Objects panel, right-click the attribute that provides the location information for the map markers in the widget, then select Add to Grouping. For steps and an explanation of grouping data in a document, see Grouping records in a document.

  7. Add content to this layout to be displayed in the Information Window. You can add any controls to the layout, including text fields, Grid/Graphs, images, shapes, and so on. For an overview of controls that can be added to an Information Window, see About creating documents. The container that displays the Information Window on the iPhone is 1.5 inches wide. Its height is defined to fit to the content, with a maximum height of 1 inch.

    The following are suggestions for controls to add to an Information Window:  

  8. From the Tools menu, select Document Properties. The Properties dialog box opens.

  9. From the Layout Properties section on the left, click Mobile, then select the Use as Information Window check box.

  10. Click OK. The layout is enabled as an Information Window.

  11. Select the tab of the layout that contains the Map widget, then right-click the widget. Select Properties and Formatting. The Properties and Formatting dialog box opens.

  12. From the left, select Widget.

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

  14. Select the Display Information Window from document layout check box.

  15. From the Select Layout to use drop-down list, select the name of the layout to use as the Information Window.

  16. Click OK to apply changes and return to the Properties and Formatting dialog box.

  17. Click OK again to apply changes and return to the document.

To define a custom Information Window for a Map widget displayed on the iPad

Prerequisite

  1. Open the document in Design or Editable Mode.

  2. From the Insert menu, select Panel Stack.

  3. Click the location on your document, except for the Detail section, where you want to place the panel stack. The panel stack is added to the document.

  4. Add content to the panel stack, such as images and data fields. For more information on adding content to a panel stack, as well as steps to format the panel stack, see Inserting a panel stack into a document.

    The following are suggestions for controls to add to an Information Window:  

  5. Right-click the panel stack, then select Properties and Formatting. The Properties and Formatting dialog box is displayed.

  6. From the list of categories on the left, select General.

  7. Select the Use as Information Window for template selectors (iPad only) check box.

  8. Click OK to return to the document.

  9. From the rows of the widget's Grid/Graph, right-click the attribute that provides the location information for items displayed in the widget, then select Use as Selector. By default, the selector automatically targets all Grid/Graphs and panel stacks in the current panel or section of the document. The selector must target the panel stack that will be used as the Information Window. If it does not, you can disable automatic target maintenance and choose targets manually. For more information on automatically maintaining selector targets, see Automatically maintaining targets for selectors.

Related topic