Classes
Members
availableTools :string
The available tools
The element attribute: available-tools
All or part of DigitizingAvailableTools except deactivate
Type:
- string
- Source:
- See:
-
- DigitizingAvailableTools
context :string
Digitizing context
The element attribute: context
Type:
- string
- Source:
deactivate :boolean
The element is deactivated
if the element is disabled
or if the tool is deactivated
Type:
- boolean
- Source:
disabled :boolean
The element is disabled if the context is not the same as the module
Type:
- boolean
- Source:
importExportAvailable :boolean
Import/export is available
The element has attribute: import-export
Type:
- boolean
- Source:
measureAvailable :boolean
Measure is available
The element has attribute: measure
Type:
- boolean
- Source:
saveAvailable :boolean
Save is available
The element has attribute: save
Type:
- boolean
- Source:
toolSelected :string
The selected tool
The element attribute: selected-tool
Type:
- string
- Source:
toolSelected
Setting the selected
- Source:
- See:
-
- DigitizingAvailableTools
(static, constant) DigitizingTools :string
Enum for digitizing tools
Type:
- string
Properties:
Name | Type | Description |
---|---|---|
Deactivate |
string | Deactivate digitizing tools |
Point |
string | Point digitizing tool |
Line |
string | Line digitizing tool |
Polygon |
string | Polygon digitizing tool |
Box |
string | Box digitizing tool |
Circle |
string | Circle digitizing tool |
Freehand |
string | Freehand digitizing tool |
Text |
string | Text digitizing tool |
- Source:
(inner, constant) DigitizingAvailableTools :Array.<string>
List of digitizing available tools
Type:
- Array.<string>
- Source:
Methods
selectTool(tool) → {boolean}
Select tool
Parameters:
Name | Type | Description |
---|---|---|
tool |
string | The tool to select |
- Source:
Returns:
- True if the tool is selected, false otherwise
- Type
- boolean
toggleToolSelected(event)
Toggle selected tool
Parameters:
Name | Type | Description |
---|---|---|
event |
MouseEvent | The click event on the button |
- Source: