Right click the map to start measuring a multi-leg route distance (and an area of a closed route). Or left click just to get coordinates (latitude, longitude) and an elevation at the point of a click.
Based on the MeasureTool GoogleMaps V3, and Google Maps API