Line string how to use

How do I use the “line string” to measure distance between markers on the map?

thank you very much