new module:ToolActivate(toolContext, activePropertyName)
A simple object that can be managed by ngeo.misc.ToolActivateMgr
.
See our live examples: ../examples/mapquery.html ../examples/toolActivate.html
Parameters:
Name | Type | Description |
---|---|---|
toolContext |
Object | An object which acts as the context for the tool. |
activePropertyName |
string | The name of a boolean property on
|
Methods
getActive()
A getter function to get the active state of the tool.
Returns:
boolean
Is active.
setActive(newVal)
A setter function to set the active state of the tool.
Parameters:
Name | Type | Description |
---|---|---|
newVal |
boolean | New active state. |