geoflo.Control

This module is responsible for creating and managing the control buttons in the Geoflo application.

Methods

static disable() → {Object}

Disables the control buttons.
Returns:
Object - Returns the control object.

static enable(control) → {Object}

Enables the control buttons.
Parameters:
Name Type Description
control Object The control object to enable.
Returns:
Object - Returns the control object.

static getButtons() → {Object}

Gets the control buttons.
Returns:
Object - Returns the control buttons.

static getControl(id) → {Object}

Gets the control buttons.
Parameters:
Name Type Description
id String The id of the control button to get.
Returns:
Object - Returns the control button.

static getTheme() → {Object}

Gets the theme for the control buttons.
Returns:
Object - Returns the theme for the control buttons.

static hideControl(id) → {Object}

Hides the control buttons.
Parameters:
Name Type Description
id String The id of the control button to hide.
Returns:
Object - Returns the control button.

static onAdd(map) → {Object}

Adds the control buttons to the map.
Parameters:
Name Type Description
map Object The map object to add the control buttons to.
Returns:
Object - Returns the control object.

static onRemove() → {Object}

Removes the control buttons from the map.
Returns:
Object - Returns the control object.

static setAttribution() → {Object}

Sets the attribution for the control buttons.
Returns:
Object - Returns the control object.

static setControl(controls) → {Object}

Sets the control buttons.
Parameters:
Name Type Description
controls Array The control buttons to set.
Returns:
Object - Returns the control object.

static setMode(mode) → {Object}

Sets the mode for the control buttons.
Parameters:
Name Type Description
mode String The mode to set the control buttons to.
Returns:
Object - Returns the control object.

static setTheme(colors) → {Object}

Sets the theme for the control buttons.
Parameters:
Name Type Description
colors Object The colors to set the theme to.
Returns:
Object - Returns the control object.

static showControl(id) → {Object}

Shows the control buttons.
Parameters:
Name Type Description
id String The id of the control button to show.
Returns:
Object - Returns the control button.