Classes
Methods
# activate(tool)
Activates specified tool
Parameters:
Name | Type | Description |
---|---|---|
tool |
MeasurementTools
|
tool to activate |
- See:
# changeAreaUnits(unit)
Sets the area units to be shown by the tool.
Parameters:
Name | Type | Description |
---|---|---|
unit |
AreaUnits
|
Imperial or metric value from AreaUnits |
- See:
# changeLengthUnits(unit)
Sets the length units to be shown by the tool.
Parameters:
Name | Type | Description |
---|---|---|
unit |
LengthUnits
|
Imperial or metric value from LengthUnits |
- See:
# changeMeasureUnits(system)
Changes measurement system for tools. Changing measurement system will automatically choose the most appropriate measurement unit for each measurement.
Parameters:
Name | Type | Description |
---|---|---|
system |
MeasureSystem
|
Imperial or metric value from MeasureSystem |
- See:
# changeSlopeUnits(unit)
Sets the slope units to be shown by the tool.
Parameters:
Name | Type | Description |
---|---|---|
unit |
SolpeUnits
|
Imperial or metric value from SlopeUnits |
- See:
# deactivate(tool)
Deactivates specified tool
Parameters:
Name | Type | Description |
---|---|---|
tool |
MeasurementTools
|
tool to deactivate |
- See:
# getMeasurementLayer() → {GroupLayer}
Returns the vector layer used for make and save measurements.
Measurement Layer
# hasMeasurementActive() → {boolean}
Checks to see if any measurement tools are active. Returns 'true' if one or more tools are active
boolean