Simple Log Service provides built-in AMAP charts, such as point maps and heat maps. When you use the ip_to_geo function in a query statement, Simple Log Service displays the analysis results on a map. This topic describes a configuration example and the general configurations for AMAP.
Introduction
This uses a map as a background to display geographic data using graph colors and image marks. The basic components are as follows:
Map canvas
Color blocks
Configuration example
Log on to the Simple Log Service console. In the Projects section, click the project you want.

In the left-side navigation pane, choose . In the Dashboard list, click the dashboard you want. In the upper-right corner of the dashboard page, click Edit. In edit mode, choose .
On the right side of the page, configure Chart Type, Map Configurations, and Query and Analysis Configurations. On the left side of the page, configure the time range, Logstore, and query statement. Then, click Apply at the top of the page to view the chart.
The query statement to query and analyze region information is as follows:
ImportantTo use AMAP, obtain the latitude and longitude using the ip_to_geo function.
* | select ip_to_geo(remote_addr) as address, count(1) as count group by address order by count desc limit 20
General configurations
General configurations apply to the entire chart.
Basic Configurations
Parameter
Description
Title
The title of the chart.
Display Title
If you turn on Display Title, the title of the chart is displayed.
Display Border
If you turn on Display Border, the borders of the chart are displayed.
Display Background
If you turn on Display Background, the background color of the chart is displayed.
Display Time
If you turn on Display Time, the query time range of the chart is displayed.
Fixed Time
If you turn on Fixed Time, the query time range of the chart is independent of the global time range of the dashboard.
Map configurations
Parameter
Description
Enable Scroll to Zoom
Lets you scroll the mouse wheel to zoom in or out of the map.
Enable Drag
Lets you drag the map to change its position.
Query and analysis settings
Parameter
Description
Latitude and Longitude
Select the field that represents the latitude and longitude.
Value Column
Select the field that provides the values to display.