addMeasure function

Add a measure control to the map.