This topic describes how to configure a trail map to display query results.
A trail map uses AMap to display the trail of a target over a period of time. Log Service provides two display modes for trail maps: longitude and latitude and points of interest (POI).
- Map canvas
- Points and lines
- Time line
- Log on to the Log Service console.
- In the Projects section, click the name of the project that you want to manage.
- Choose , and then click the Logstore that you want to manage.
- Enter a query statement in the search box, specify a time range, and then click Search & Analyze.
- On the Graph tab, click the icon.
- On the Properties tab, configure the properties of the trail map.
Parameter Description Trail Type The type of the trail map. Valid values: Longitude & Latitude and POI. Identity Column The field that is selected to identify trail data. Information Column The information to be displayed on the map. You can select one or more fields for this parameter.
You can click a point on the trail map to view the information that is displayed on a pop-up window.
Longitude You must set this parameter if you select Longitude & Latitude for Trail Type. You must select the field that includes the longitude data. Latitude You must set this parameter if you select Longitude & Latitude for Trail Type. You must select the field that includes the latitude data. POI Field You must set this parameter if you select POI for Trail Type. You must select the field that includes the POI data.
- SQL statement
type:trace | select location, __time__, id, action, text
location __time__ action id text Village A, Longhua District 1582892272 Drive home 170 On the morning of February 24, confirmed case No.170 drove home with confirmed cases No.136 and No.143 from Haikou city center to Village A of Longhua District. Village A, Longhua District 1582892272 Stay home 170 Confirmed case No.170 stayed home from February 25 to February 27, but met confirmed case No.123. Village A, Longhua District 1582892272 Drive to Haikou 170 On the morning of February 28, confirmed case No.170 drove from Village A of Longhua District to Haikou and bought food at the wet market in Longqiao Town.
- Trail map