Creates a MesureTool button menu containing “Length” and “Area and Perimeter” measure tools. The default units used are : metric and english.
Sample configuration with Length type
<measuretool>
<name>W_MeasureTool</name>
<options />
</measuretool>
The MeasureTool widget doesn’t need to be drawn. Instead, it must be added to a GeoExtToolbar widget :
<geoexttoolbar>
<name>W_Toolbar</name>
<options>
<widgets>
<widget>W_MeasureTool</widget>
</widgets>
</options>
</geoexttoolbar>
N/A
geodesic: | (Boolean) Defaults to false. Set to true when the map is in a geodesic projection. |
---|---|
hectare: | (Boolean) Defaults to false. Whether to add the hectare metric unit. |
immediate: | (Boolean) Defaults to true. Whether the partial measure should be updated on sketch immediate change (true) or single click (false). |
showLastSegmentMeasure: | |
(Boolean) Defaults to false. Whether the measuse of the last segment should be displayed in the popup. | |
tooltipAtCursor: | |
(Boolean) Defaults to true. The information tooltip follow the cursor when user click. |
N/A
read