Class Mapbuilder
Object
|
+--Mapbuilder
- class
Mapbuilder
Defined in Mapbuilder.js
Requires:
Author: Cameron Shorter
Field Summary |
Object |
loadingScripts
Array of objects that are loading. |
Object |
loadState
Determines which Mapbuilder scripts are loading. |
Object |
scriptsTimer
Timer to periodically check if scripts have loaded. |
Constructor Summary |
Mapbuilder
()
This Object bootstraps the Mapbuilder libraries by loading the core
script files.
|
Method Summary |
void
|
checkScriptsLoaded()
Called periodically and moves onto the next loadState when this round of
scripts have loaded.
|
Object
|
loadScript(url)
Dynamically load a script file if it has not already been loaded.
|
void
|
loadScriptsFromXpath(nodes,dir)
Internal function to load scripts for components that don't have
specified in the config file.
|
void
|
setLoadState(newState)
Move onto loading the next set of scripts.
|
loadingScripts
Object loadingScripts
Array of objects that are loading. Don't continue initialisation until
all objects have loaded.
loadState
Object loadState
Determines which Mapbuilder scripts are loading.
TBD: Is it possible to use enumerated types in JS?
scriptsTimer
Object scriptsTimer
Timer to periodically check if scripts have loaded.
Mapbuilder
Mapbuilder()
This Object bootstraps the Mapbuilder libraries by loading the core
script files.
When Config.js is loaded, the script files for objects described in the
Mapbuilder config file are loaded.
Objects which have dependencies will trigger the dependancies to load
when they are loaded.
Requires:Author: Cameron Shorter
checkScriptsLoaded
void checkScriptsLoaded()
Called periodically and moves onto the next loadState when this round of
scripts have loaded.
For IE clients, object.readyState is used to check if scripts are loaded.
Mozilla works fine without this function - I think it is single threaded.
loadScript
Object loadScript(url)
Dynamically load a script file if it has not already been loaded.
Parameters:
url
- The url of the script.
loadScriptsFromXpath
void loadScriptsFromXpath(nodes,dir)
Internal function to load scripts for components that don't have
specified in the config file.
Parameters:
dir
- The directory the script is located in.
xPath
- Xpath match of components from the Config file.
setLoadState
void setLoadState(newState)
Move onto loading the next set of scripts.
Parameters:
newState
- The new loading state.
Documentation generated by
JSDoc on Tue Aug 21 08:12:28 2007