Widgets Measure |
Fusion. Widget. MeasureThe 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
getBestAreaBased on the <displaySystem> returns the area of a geometry. Parameters
Returns{Array([Float, String])} Returns a two item array containing the area and the units abbreviation. getArea
Parameters
Returns{Float} The geometry area in the given units. getBestLength
Based on the <displaySystem> returns the length of a geometry. Parameters
Returns{Array([Float, String])} Returns a two item array containing the length and the units abbreviation. getLength
Parameters
Returns{Float} The geometry length in the given units. |
measure: function( geometry, eventType )
getArea: function( geometry, units )
Based on the displaySystem returns the length of a geometry.
getBestLength: function( geometry )
getLength: function( geometry, fusionUnits )