Implements methods for working with controls of OpenLayers.
OpenLayersTools. | Implements methods for working with controls of OpenLayers. |
Functions | |
Control | Create an object of Control. |
Variables | |
controls | In this array are stored by all controls of OpenLayers. |
Functions | |
addControls | Function creates and adds controls to the OpenLayers. |
addControls: function ( controls )
Function creates and adds controls to the OpenLayers.
controls | An object with a list of the necessary controls and their parameters. |
Fill this.controls array with object controls.
OpenLayersTools.Control.addControls({ LayerSwitcher: { controlType: 'LayerSwitcher', roundedCorner: true }, MousePosition: { controlType: 'MousePosition' }
Create an object of Control.
function Control( parent )
In this array are stored by all controls of OpenLayers.
this.controls
Function creates and adds controls to the OpenLayers.
addControls: function ( controls )