How to draw the trajectory of the vehicle?

How to draw the trajectory of each vehicle on a static map

Do you mean like what can be done with the debug tool to trace the vehicle route? https://carla.readthedocs.io/en/latest/core_world/#debugging