Click and drag your mouse on the map to draw a polygon. The user defined polygon will be used as input into the geometryService.areasAndLengths() operation.
Area:
Length: