I am wanting to have a small popup to show the distance of line segments along with the total distance at the end. This would be similar to what I have attached. I am not sure the best route to perform this.