Map report objects

  • Release version: Xanadu
  • Updated August 1, 2024
  • 2 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of Map report objects

    Map report objects in ServiceNow define the hierarchical drill-down levels and the data displayed on each level within map reports. Administrators can create and manage these objects to configure how geographic or location-based data is visualized and drilled into. Each map report includes two key hierarchies: themap source hierarchy, which configures data per map level, and themap hierarchy, which defines the drill levels themselves. These hierarchies are linked by the Level field, ensuring data corresponds correctly to each drill level.

    Show full answer Show less

    ServiceNow provides predefined map sources and maps by default, which should be used whenever possible to simplify setup. If a required map source does not exist, admins can automatically generate map source levels from location-based tables and then customize them as needed.

    Key features

    • Map source: Defines the dataset displayed on a map report. A map source is actually a hierarchy of levels, each containing data for a drill level. The top-level map source acts as a wrapper for these levels. Unlike a typical report source, map sources select a specific field (e.g., location) rather than an entire table.
    • Map: Represents the visual map itself, arranged in a parent-child hierarchy that corresponds to drill levels. The layout is defined by JSON or geoJSON, allowing geographic visualizations. Maps can include conditions to filter displayed data further.
    • Mappings: Transform data values from map sources into displayable map values. They are grouped by categories such as Countries or States/Provinces. The mapping group selected must align with the field in the map source (e.g., Country mappings for country fields).

    Practical implications for ServiceNow customers

    This mapping framework enables customers to build detailed, interactive map reports where users can drill down through geographic or location-based data layers. By leveraging predefined objects or generating map sources automatically from location tables, admins can efficiently set up map reports that visualize data hierarchically. Proper configuration of map sources, maps, and mappings ensures accurate data representation and filtering on maps, enhancing data insight and decision-making.

    Key tasks for admins include generating map source hierarchies when needed, customizing individual map source levels, creating key-value pair mappings for data transformation, and defining or selecting maps that align with business requirements.

    Map objects define the different levels that users can drill down into on a map report and the data displayed on these levels. Admins can create and manage these objects.

    Each map report contains a map source hierarchy, which configures the data for a map level. The report also contains a map hierarchy, which defines the map drill levels. The Level field connects levels for these hierarchies. For example, the data in the Level 1 map is displayed on the Level 1 map object.

    Note:
    A set of predefined map sources and maps are available by default. Use these predefined objects whenever possible. If you need a map source that does not exist, generate it automatically using Generate map source levels link on the map source form, then customize it. You can automatically generate map source levels only for map sources that reference the location table. These map sources have a field that ends in .location.
    Architecture of objects used in map reports.
    Table 1. Map objects
    Object Description
    Map source Defines a set of data to display on a map report.

    The map source that a user selects in the Map data field when creating a map report is actually a map source hierarchy. There is one map source level for each drill level on the map. The top map source in the hierarchy is not a level, but rather a wrapper for other hierarchy levels. Each map source contains the data for a single map hierarchy drill level, with both having the same Level.

    Because they both specify the data that is used for a report, a map source is similar to a report source. However, in a map source you select a field to report on instead of a table.

    Map The map that data is displayed on. Maps are set up in a hierarchy defined by parent-child relationships. Each hierarchy level is a drill level on the map report. A JSON definition (geoJSON definition for geographical maps) defines the actual map layout.

    Select an existing map or create a new one. You can optionally define conditions for a map, which further filters the data it displays.

    Mappings Transform the data in a map source to a value that can be displayed on a map.

    Mappings are organized into the Countries and State / Province mapping groups. During map source configuration, you select the mapping group to transform the data in that source. The mapping group that you select must match the Field that you have selected.

    For example, a map source that has a Field value of Locations Country would use the Country mappings group. A map source that has a Field value of Locations State / Province would use the Region and state mappings mapping group.