I calculated the area of the polygon from the URL below through an example.
https://openlayers.org/en/latest/examples/measure.html
measure test
However, a