oscar.Control.ThemeManager

The Oscar ThemeManager control handles the drawing of themes onto a map object.

Inherits from:<OpenLayers.Control>
Summary
oscar.Control.ThemeManagerThe Oscar ThemeManager control handles the drawing of themes onto a map object.
Constants
EVENT_TYPES
Constructor
oscar.Control.ThemeManager
Functions
ignoreEventIgnores an event.
setMapSet the map property for the control.
setConfigManagerSets the configManager property used to load an OXF (Oscar eXchange Format) source.
setGuiManagerSets the GUI manager to use if there is to be a visual display of themes.
doDrawDraws the active theme.
Constants
CLASS_NAME - oscar.Control.ThemeManager

Constants

EVENT_TYPES

themeAddedCalled when there is a theme added. afterDraw - Called when the doDraw method is completed.

Constructor

oscar.Control.ThemeManager

Parameters: options{Object} An optional object whose properties will be set on this instance.

Functions

ignoreEvent

ignoreEvent : function(evt)

Ignores an event.

Parameters: evt{<OpenLayers.Event>}

setMap

setMap : function(map)

Set the map property for the control.  This is done through an accessor so that subclasses can override this and take special action once they have their map variable set.

Parameters: map{<OpenLayers.Map>}

setConfigManager

setConfigManager : function(cm)

Sets the configManager property used to load an OXF (Oscar eXchange Format) source.  This will register event calls to applyThemes function when the configManager triggers a haveThemes event.

Parameters: cm{oscar.Control.OXFConfigManager}

setGuiManager

setGuiManager : function(gui)

Sets the GUI manager to use if there is to be a visual display of themes.  This method will trigger the themeActivated event when the GUI manager triggers its themeActivated event.

Parameters: guiGUI manager.

doDraw

doDraw : function(extent,
options)

Draws the active theme.

Parameters: extent{<OpenLayers.Bounds>} or {<OpenLayers.LonLat>}
options{Object} optional.

Constants

CLASS_NAME - oscar.Control.ThemeManager

ignoreEvent : function(evt)
Ignores an event.
setMap : function(map)
Set the map property for the control.
setConfigManager : function(cm)
Sets the configManager property used to load an OXF (Oscar eXchange Format) source.
setGuiManager : function(gui)
Sets the GUI manager to use if there is to be a visual display of themes.
doDraw : function(extent,
options)
Draws the active theme.
The Oscar OXFConfigManager control offers a load method that background loads a remote document and builds ox, the Oscar eXchange container object, in accordance with the Oscar eXchange Format oscar.Format.OXF.v2.