GeoMOOSE.Application

The class defining a GeoMOOSE application.

Summary
GeoMOOSE.ApplicationThe class defining a GeoMOOSE application.
Functions
getMapbookLoads the mapbook from the CONFIG.mapbook, or an alternative from the url parameter.
onGotMapbookCalled when the mapbook is loaded and ready for parsing.
gotMapbookCalled immediate after the mapbook is loaded from the server.
onMapbookLoadErrorCalled when the Mapbook fails to load.
parseConfigurationParses the configuration into the global CONFIGURATION hash
configureMapSets up the main OpenLayers.Map object with the GeoMOOSE configuration, and creates the “navigation” layer.
configureMapToolsConfigures the internal tools relating to the map.
configureMapSourceParses a map-source XML fragment and creates necessary GM and OL classes
configureMapSourcesCreates real classes for all of the MapSources.
getMapSourceTakes a full path and return a MapSource
onLayersChange
getVisibleLayersIterates through the mapSources and returns a list of the visible paths.
getStatusDifferencesIterates through all the Map Source’s and Layers and returns which ones have changed through use of the application.
configureServiceManagerConfigures the service manager, which provides the core functionality for talking with servers.
activateMapSourceTriggers on onActivateMapSource Event.
onActivateMapSourceTriggered when a layer is “activated.”
addPopupPlace a popup on the map.

Functions

getMapbook

getMapbook: function (url)

Loads the mapbook from the CONFIG.mapbook, or an alternative from the url parameter.

Parameters

urlOverrides the setting from CONFIG

onGotMapbook

onGotMapbook: function(response)

Called when the mapbook is loaded and ready for parsing.  Use hooks to this for doing custom onGotMapbook functionaliy.

gotMapbook

gotMapbook: function(response)

Called immediate after the mapbook is loaded from the server.

onMapbookLoadError

onMapbookLoadError: function(response)

Called when the Mapbook fails to load.

parseConfiguration

Parses the configuration into the global CONFIGURATION hash

configureMap

configureMap: function ()

Sets up the main OpenLayers.Map object with the GeoMOOSE configuration, and creates the “navigation” layer.

configureMapTools

configureMapTools: function()

Configures the internal tools relating to the map.

configureMapSource

configureMapSource: function(map_source_xml,
override_list)

Parses a map-source XML fragment and creates necessary GM and OL classes

Parameters map_source_xml - The <map-source> xml node

configureMapSources

configureMapSources: function(response)

Creates real classes for all of the MapSources.

Parameters

responseThe Mapbook.

getMapSource

getMapSource: function(name)

Takes a full path and return a MapSource

Parameters

nameName of the MapSource or a “/”-delimited path.

onLayersChange

onLayersChange: function(path,
visibility)

getVisibleLayers

getVisibleLayers: function()

Iterates through the mapSources and returns a list of the visible paths.

getStatusDifferences

getStatusDifferences: function()

Iterates through all the Map Source’s and Layers and returns which ones have changed through use of the application.

Returns

An object containing “off” and “on” members, which are lists containing the list of layers which have been turned on and off.

configureServiceManager

configureServiceManager: function ()

Configures the service manager, which provides the core functionality for talking with servers.

activateMapSource

activateMapSource: function(path)

Triggers on onActivateMapSource Event.

onActivateMapSource

onActivateMapSource: function(path)

Triggered when a layer is “activated.”

addPopup

addPopup: function(popup)

Place a popup on the map.

getMapbook: function (url)
Loads the mapbook from the CONFIG.mapbook, or an alternative from the url parameter.
onGotMapbook: function(response)
Called when the mapbook is loaded and ready for parsing.
gotMapbook: function(response)
Called immediate after the mapbook is loaded from the server.
onMapbookLoadError: function(response)
Called when the Mapbook fails to load.
configureMap: function ()
Sets up the main OpenLayers.Map object with the GeoMOOSE configuration, and creates the “navigation” layer.
configureMapTools: function()
Configures the internal tools relating to the map.
configureMapSource: function(map_source_xml,
override_list)
Parses a map-source XML fragment and creates necessary GM and OL classes
configureMapSources: function(response)
Creates real classes for all of the MapSources.
getMapSource: function(name)
Takes a full path and return a MapSource
onLayersChange: function(path,
visibility)
getVisibleLayers: function()
Iterates through the mapSources and returns a list of the visible paths.
getStatusDifferences: function()
Iterates through all the Map Source’s and Layers and returns which ones have changed through use of the application.
configureServiceManager: function ()
Configures the service manager, which provides the core functionality for talking with servers.
activateMapSource: function(path)
Triggers on onActivateMapSource Event.
onActivateMapSource: function(path)
Triggered when a layer is “activated.”
addPopup: function(popup)
Place a popup on the map.
Close