OpenLayers Measure Example

measuring, geodesic, area, length, distance

Demonstrates the measure control to measure distances and areas.

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. Also you have the possibility to set the "immediate" property to true to get a new calculated value once the mouse has been mooved.