A polyline map is a type of geolayer on a Map chart that lets you draw polylines on the map. A polyline consists of points connected in a certain order.
A polyline map is used, for example, to show the path of a moving object.
To build a polyline map, you need the following data:
Coordinates of line points of the Geopoint data type. Each point of each polyline must be stored in a dataset as a separate row.
A field or a set of fields to group points into lines (each line's ID).
A field to sort the order of points in each line (such as a timestamp or point number).
You can color polyline segments in one of the following ways:
In a gradient by measure (for a example, an average speed in a point).
In discrete colors by dimension (for example, by trip name).
Reduce the number of route points at the source level if there are too many of them. To do this, use a chart-level filter. This will speed up map loading and rendering.
Use the MAVG moving average function to smooth measure outliers of individual points/sections.
For example, when building a line representing average speed using the MAVG([speed],2,2) function, the speed measure values are averaged out in the current point, as well as two points before and two points after it. As a result, the color gradient changes more smoothly.