OpenLayers Measure Example

Demonstrates the measure control to measure distances and areas.

0.00000, 0.00000

Note that the geometries drawn are planar geometries and the metrics returned by the measure control are planar measures by default. If your map is in a geographic projection or you have the appropriate projection definitions to transform your geometries into geographic coordinates, you can set the "geodesic" property of the control to true to calculate geodesic measures instead of planar measures.