Google Maps

The Google Maps Wizard allows interactive maps with highlighted data to appear in Advanced Reports. Geographical areas can be pinpointed or highlighted dynamically depending on report data.

A sample Google Map visualization with a primary metric coloring the countries and three additional metrics displayed in a tooltip

To insert a Google Map into a report:

  1. Select a Group Header, Group Footer, Report Header or Report Footer cell.

  2. On the toolbar, click the Insert    icon, then click  Google Maps.

  3. Progress through the Locations, Data, Appearance, and Size and Preview tabs, then click Finish when done.

To edit an existing Google Map:

  1. Select the gauge on the report.
  2. Either:


Locations 

Select the locations to use for data highlighting. Google Maps support up to six levels of granularity of locations. Some location types require data for enclosing types, in order to disambiguate location names. For each location type, select the report cell that contains the location names.

Use the following chart to determine the required data for different location types. Start at a slice and follow the chart inward to find its required locations.

Location requirements

Alternately, you can use latitude and longitude to place drop pins at coordinates on the map.

  1. Add location types by either:

     Note
    Certain location types may require other types to be added or may prevent other types from being added.
    BUpjqD1kj3.png
    Adding street address requires that city and state, or city, state be added as well

  2. Choose the content of the cell that correlates to each location type from the Report Cell Value column.

    eBuUBOD1hw.png

Remove a location type by clicking the Delete X icon at the end of the row.

Click Next to advance to the Data tab.

 Caution
County and Zip Code locations are only available for data based in the United States. Add 'county' to the end of county names.

Data 

In the Data tab determine what values, called metrics, will color and display on the map. The primary metric is used to color/shade the map and any number of additional metrics may be displayed in a tooltip when the mouse hovers over a region.

E8xG4mX9rt.png

There must be a minimum of one metric. Click the +Add Metric button to add additional metrics. Click the Delete X icon to remove a metric.

For each metric in the list:

  1. Use the Metric dropdown to select the report cell that contains its data.
  2. Select how to summarize (aggregate) the data from the Agg. Type dropdown:
  3. Enter a brief description in the Labels field.
  4. Select whether it is the Primary Metric. The Primary Metric is used to color/shade each region.

     Note
    Metrics with an Agg. Type except None may be the Primary Metric.

  5. Click the Number Format FormatCells.png icon to change how the metric is displayed in the tooltip. This will open the Number Format dialog which works very similar to the Cell Format dialog in the Advanced Report Designer. The number formatting changes will only apply if the data field is numeric.

Hyperlinks

A hyperlink may optionally appear in the tooltip when zoomed in to the map at the drop pin level.

lwtJbmWvJ1.png

To do this:

  1. A cell on the report must contain the Hyperlink function.
    For example, the report below will launch a Google search for the company name when the link in the tooltip is clicked by using this formula:
    =Hyperlink("https://www.google.com/?q="&{Customers.CompanyName},{Customers.CompanyName})

    keMG62b5Et.png

  2. Add the cell with the hyperlink formula as a metric with Agg. Type set to None.

     Note
    Hyperlinks used for drop pins can be referenced from any section within the report; however, for dynamic linking, hyperlink information should be referenced from the detail section or a grouped section.

    BvC7uZhPWP.png

Appearance 

In the Appearance tab, determine the appearance of the metrics on the map.

appearancetab.png

Primary Metric Colors

Choose a coloring style from the list on the left, either:

Check Show Legend to add a legend in the bottom left corner of the map.

Metric Levels

Calculate Metrics Per — select for which geographic levels to summarize the metrics. Hover the mouse over the More Information ? icon to learn more about this function.

Display Drop Pins — select whether to display drop pins, which will appear on city, street address, or  latitude/longitude locations. Hover the mouse over the More Information ? icon to learn more about this function.

 Note
The summary function None requires a drop pin.

Conditional Drop Pin Colors — dynamically modify a drop pin color based on its value. This action is similar to conditionally formatting cells in a report.

  1. Click the FormatCells.pngConditional Drop Pin Colors... button.
  2. Click +Add to insert a new conditional statement. Select a color that the drop pin will become when the condition is met.

    conditional_drop_pin_colors_selectcolors.png

  3. For each conditional color, add a condition that when true will color the drop pin. Click the Formula Editor fx icon to open the Formula Editor:

    screen.conditionaldroppin_forumlaeditor.png

    The left side contains a list of the Conditional Drop Pin Parameters that includes:

    The right side contains all of the application's built-in formulas. You can drag a data field or a formula to the Formula box, or type it in by hand. The editor also supports using parameters in the form @ParameterName@. For more information about building formulas, review the Formulas section.

    The formula must return a logical true value to cause the drop pin to become conditionally colored.

    screen.conditionaldroppin_formatting.png

    Conditional Drop Pin Formatting that will color the pin red if the value of the first metric is less than 100000 or green if it is greater than 100000

  4. Click Okay to close the Conditional Drop Pin Formatting dialog.

Size and Preview 

Set the size, initial view, and type of map to display in the Size and Preview tab.

googlemapes_sizeandpreview_tab.png

 Note
The preview uses placeholder data values. It does not reflect the actual region shading.

Set the initial view of the map by panning and zooming to a location.

Change the size of the chart in one of three ways:

Select the style of map with the Base Map dropdown. Choose from:

Click Finish to add the completed visualization to the report.

Interacting with Google Maps Visualizations

On the first run, it may take a few minutes for the map to populate with data and for the metrics to be aggregated. A Loading Data message will appear in the top-left corner, then disappear once loading is completed.

Google Map

A Google Maps visualization as it appears in the Report Viewer

Google Maps visualizations are interactive in a number of ways:

 Note
When an Advanced Report containing a Google Map visualization is exported to an output file type that supports visualizations (i.e. PDF, RTF or Excel) the map will be reset to the default view defined in the Size and Preview tab of the wizard.