All Products
Search
Document Center

Simple Log Service:Map

Last Updated:Dec 25, 2024

Maps include the map of China and the world map. If you want to view the global distribution of logs, you can configure a world map. For example, you can configure a world map to display the geographical distribution of access from users around the world. If you want to view the distribution of logs in China, you can configure a map of China. For example, you can configure a map of China to display the national distribution of access from users in China. This topic describes how to configure a map.

Overview

You can use colors and marks on a map to display geographic data. You can configure a map of China and a world map in Simple Log Service. If you specify the ip_to_province or ip_to_country function in a query statement, Simple Log Service displays the query and analysis results in a map. The ip_to_province function is used to display results in a map of China. The ip_to_country function is used to display results in a world map.

A map consists of the following elements:

  • Map canvas

  • Colored areas

Configuration effect

Map type

References

World map

Configure a world map

Map of China

Configure a map of China

Configuration on the General Configurations tab

You can configure global settings for a map on the General Configurations tab.

  • Parameters in the Basic Configurations section

    Parameter

    Description

    Title

    The title of the map.

    Display Title

    If you turn on Display Title, the title of the map is displayed.

    Display Border

    If you turn on Display Border, the borders of the map are displayed.

    Display Background

    If you turn on Display Background, the background color of the map is displayed.

    Display Time

    If you turn on Display Time, the query time range of the map is displayed.

    Fixed Time

    If you turn on Fixed Time, the query time range of the map is independent of the global time range of the dashboard.

  • Parameters in the Standard Configurations section

    Parameter

    Description

    Format

    The display format of numeric values.

    Unit

    The unit of numeric values.

    Number of Digits after Decimal Point

    The decimal places of numeric values.

    Display Name

    The display name of the map.

    Color Scheme

    The color scheme of the map.

  • Parameters in the Map Settings section

    Parameter

    Description

    Scroll to Zoom

    If you select Yes, you can scroll to zoom in or zoom out the map.

    Drag

    If you select Yes, you can drag the map.

  • Parameters in the Query and Analysis Configurations section

    Parameter

    Description

    Data Type

    The type of the data to be displayed in the map. Valid values: Region, Latitude and Longitude, and Latitude,Longitude. Default value: Region.

    Area/Area Code

    The field that specifies regions.

    A field value is a code that specifies a region or a country. Example: 330000.

    Value Column

    The field that specifies the numeric values to be displayed.

    Additional Information

    The field that specifies the additional information to be displayed.

  • Parameters in the Legend Configurations section

    Parameter

    Description

    Display Legend

    If you turn on Display Legend, the legend is displayed in the map.

    Sorting Order

    The sorting method of the legend items.

    Legend Position

    The position of the legend in the map.

    Actions

    The data display effect when you click a legend item. Valid values:

    • Single: If you click a legend item, only the data for the legend item is displayed in the map.

    • Switch: If you click a legend item, the data for the legend item is hidden or displayed in the map.

    Maximum Width (Height)%

    The maximum width and height of the legend.

  • Parameters in the Variable Replacement section

    Parameter

    Description

    Variable Replacement

    The settings for variable replacement. You can click AddVariable Replacement to add a filter of the Variable Replacement type to the table. After you configure the settings for variable replacement on the General Configurations tab, Simple Log Service adds a filter in the upper-left corner of the table. You can select a value from the filter drop-down list. Then, Simple Log Service automatically replaces the variable in the query statement of the table with the variable value indicated by the value that you select, and performs a query and analysis operation. For more information, see Example 2: Configure variable replacement.

  • Parameters in the Documentation section

    Parameter

    Description

    Add Documentation Link

    The button that allows you to specify custom document links and descriptions. After you configure the settings, the specified information is displayed in the upper-right corner of the map.

Configuration on the Field Configuration tab

You can configure personalized display settings for the results of a single query statement or for a single column of data in the results. For more information, see Configuration on the General Configurations tab.

For example, you can select A > count to configure settings for the count field in the results of Query Statement A. The Unit parameter in the Standard Configurations section is set to Custom: item.