Fusion. Widget. Measure

The Measure widget allows the user to measure distances or areas on the map in one or more segments.  Area is positive if measured clockwise.

Summary
The Measure widget allows the user to measure distances or areas on the map in one or more segments.
Based on the <displaySystem> returns the area of a geometry.
Based on the <displaySystem> returns the length of a geometry.

Functions

measure

measure: function(geometry,
eventType)

Parameters

geometry{OpenLayers.Geometry}
eventType{String}

getBestArea

Based on the <displaySystem> returns the area of a geometry.

Parameters

geometry{OpenLayers.Geometry}

Returns

{Array([Float, String])} Returns a two item array containing the area and the units abbreviation.

getArea

getArea: function(geometry,
units)

Parameters

geometry{OpenLayers.Geometry}
units{String} Unit abbreviation

Returns

{Float} The geometry area in the given units.

getBestLength

getBestLength: function(geometry)

Based on the <displaySystem> returns the length of a geometry.

Parameters

geometry{OpenLayers.Geometry}

Returns

{Array([Float, String])} Returns a two item array containing the length and the units abbreviation.

getLength

getLength: function(geometry,
fusionUnits)

Parameters

geometry{OpenLayers.Geometry}
units{String} Unit abbreviation

Returns

{Float} The geometry length in the given units.

measure: function(geometry,
eventType)
getArea: function(geometry,
units)
getBestLength: function(geometry)
Based on the displaySystem returns the length of a geometry.
getLength: function(geometry,
fusionUnits)
A Geometry is a description of a geographic object.