Calculates the length of a user defined polyline.

- To draw a polyline, click and then click on the map.
- Double-click to stop drawing and calculate the length.
- Click the button again to start drawing a new polyline.