Animate a line by updating a GeoJSON source on each frame.
Change an existing feature on your map in real-time by updating its data.
This tutorial shows how to add a GeoJSON line overlay to the map.