OpenLayersTools.Control

Implements methods for working with controls of OpenLayers.

Summary
OpenLayersTools.ControlImplements methods for working with controls of OpenLayers.
Functions
ControlCreate an object of Control.
Variables
controlsIn this array are stored by all controls of OpenLayers.
Functions
addControlsFunction creates and adds controls to the OpenLayers.

Functions

Control

function Control(parent)

Create an object of Control.

Parameters

parentObject that is the parent of this class.

Returns

Object of Control.

Variables

controls

this.controls

In this array are stored by all controls of OpenLayers.

Functions

addControls

addControls: function (controls)

Function creates and adds controls to the OpenLayers.

Parameters

controlsAn object with a list of the necessary controls and their parameters.

Returns

Fill this.controls array with object controls.

Usage

OpenLayersTools.Control.addControls({
LayerSwitcher: {
controlType: 'LayerSwitcher',
roundedCorner: true
},
MousePosition: {
controlType: 'MousePosition'
}
function Control(parent)
Create an object of Control.
this.controls
In this array are stored by all controls of OpenLayers.
addControls: function (controls)
Function creates and adds controls to the OpenLayers.
Close