Spark and Mavic Air do not have this capability natively.
You do a long string of times shots, 2 second intervals, and fly in tripod mode for best effects.
Download the pictures into a video editor that can do "Image Sequence" like Adobe Premiere.
And rendering produces the effect seen above.
I just mention it because I started looking at & working with that method.