OpenLayers OpenLayers

Default Controls

If the user does not specify a 'controls' array, the following are the controls that are added:

If the user wishes no controls at all to be added to the Map, an empty array should be passed in as the 'controls' array.

Ex:

            map = new OpenLayers.Map( $('map'), {controls: [] } );

If using the MouseToolbar control, you should do the following:

            map = new OpenLayers.Map( $('map'), {controls: [new OpenLayers.Control.PanZoom(), new OpenLayers.Control.MouseToolbar()] } );