Class: ToolActivate value:ngeoToolActivate

ngeo.ToolActivate

new ToolActivate(toolContext, activePropertyName)

A simple object that can be managed by ngeo.ToolActivate.Mgr.

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 toolContext which represents the active state of the tool.

Classes

Mgr

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.