Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
Trip layer
Trip layer can display animated path.

How to use trip layer to animate path
The trip layer supports two column modes: GeoJSON and Table columns (CSV and other tabular files).
GeoJSON
The GeoJSON data needs to contain LineString in its features' geometry, and the coordinates in the LineString need to have 4 elements in the format of [longitude, latitude, altitude, timestamp], with the last element being a timestamp. Valid timestamp formats include unix in seconds such as 1564184363 or in milliseconds such as 1564184363000.
Sample data
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"vendor": "A"
},
"geometry": {
"type": "LineString",
"coordinates": [
[-74.20986, 40.81773, 0, 1564184363],
[-74.20987, 40.81765, 0, 1564184396],
[-74.20998, 40.81746, 0, 1564184409]
]
}
}
]
}
Table columns
Trips can also be created from a list of points (for example a CSV), grouped by a unique trip id, sorted by timestamp, and joined from latitude and longitude.
| Column | Required | Description |
|---|---|---|
| id | Yes | Unique id that groups points into a trip |
| lat | Yes | Latitude of each point |
| lng | Yes | Longitude of each point |
| timestamp | Yes | Timestamp of each point |
| altitude | No | Altitude of each point |
Sample CSV
id,latitude,longitude,timestamp
A,40.81773,-74.20986,1564184363
A,40.81765,-74.20987,1564184396
A,40.81746,-74.20998,1564184409
B,40.64375,-74.33242,1565578213
B,40.64353,-74.20987,1565578217
B,40.64222,-74.33001,1565578243
Layer attributes
Color
The path can be colored by an attribute from the properties.
Stroke Width
Stroke width can be set by an attribute from the properties.
Trail Length
Trail length determines how long it takes for a path to completely fade out in seconds. This can be adjusted using the slider. Short trail length retains few historical locations while long trail length retain more and show a longer tail.
Animation speed
Animation speed can be adjusted using the animation control at the bottom.
When there are multiple layers
Multiple trip layers When you add multiple trip layers, the time range from all the layers will be combined and the animation control will span the entire time range of those layers.
Multiple layers containing trip layer and other layers Other static layers can be added besides the trip layers. Upon hiding the trip layer, its animation control will also hide, giving place to the filter control.
Export
To export an animated map, you can use a screen recording or gif capture tool. You can also export the map as an interactive HTML to open in the browser.