A simple object that can be managed by ngeo.misc.ToolActivateMgr.

See our live examples: ../examples/mapquery.html ../examples/toolActivate.html

Param: toolContext

An object which acts as the context for the tool.

Param: activePropertyName

The name of a boolean property on toolContext which represents the active state of the tool.

Ngname

ngeoToolActivate

Constructors

Properties

Constructors

Properties

getActive: (() => boolean)

A getter function to get the active state of the tool.

Type declaration

    • (): boolean
    • Returns boolean

Returns

Is active.

setActive: ((newVal) => void)

A setter function to set the active state of the tool.

Type declaration

    • (newVal): void
    • Parameters

      • newVal: boolean

        New active state.

      Returns void