Creates a MesureTool button depending on the measure type defined in the options.
Sample configuration with Length type
<measuretool>
<name>W_MyMeasureTool_Length</name>
<options>
<measuretype>Length</measuretype>
</options>
</measuretool>
Sample configuration with Area type
<measuretool>
<name>W_MyMeasureTool_Area</name>
<options>
<measuretype>Area</measuretype>
</options>
</measuretool>
The MeasureTool widgets must be added to a GeoExtToolbar
<geoexttoolbar>
<name>W_MyToolbar</name>
<options>
<widgets>
<widget>W_MyMeasureTool_Length</widget>
<widget>W_MyMeasureTool_Area</widget>
</widgets>
</options>
</geoexttoolbar>
| measuretype: | Type of measure. Possible values are (case sensitive) :
|
|---|
| geodesic: | Set to true when the map is in a geodesic projection (false by default) |
|---|---|
| tohectare: | Set to true to change the square miles to hectares (false by default) |
| pointRadius: | Change the pointRadius property |
| graphicName: | Change the graphicName property |
| fillColor: | Change the color of the fill (white by default) |
| fillOpacity: | Change the opacity of the fill (0.3 by default) |
| strokeWidth: | Change the width of the stroke (1 by default) |
| strokeOpacity: | Change the opacity of the stroke (1 by default) |
| strokeColor: | Change the color of the stroke in hexa (666666 by default) |
| strokeDashstyle: | |
| Change dash style the stroke will use (dash by default) | |
N/A
read