Properties

resizable {Boolean} allows the panel to be resizable,

default is true.

drawPanel {Boolean} whether the theme switcher should be

drawn, default is true.

closed {Boolean} initial display of the panel, default is

true

closable {Boolean} Should the panel be able to be closed.

Defaults to false.

collapsible {Boolean} Should the panel be collapsible.

Defaults to true.

iconClass {String} class to usee for the icon of the panel.

Default is oDragPanel.

tooltipText {String} Key or text to display as a tool tip.

titleText {String} Key or text to be used for the title of

the panel.

Constructor

Creates a new instance of the DragPanel control.

Parameters:options {Object} Override default property values

Usage: (code) var dragPanel= new oscar.Control.DragPanel({resizable:true,closed:false}); (end)

Functions

setMap Sets a reference to the map object.

Parameters:map <OpenLayers.Map>

draw Creates the panel to be rendered in the map.

setTitle Sets the title of the panel.

Parameters:key {String} Translation key or text to use for the title.

toggleContentDisplay Opens or closes the display of the

content pane.

Constants

CLASS_NAME

The components under oscar.Control package add extra effects and behaviors to user’s maps.