|
Community Map Builder 27 Apr 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Mapbuilder
Defined in Mapbuilder.js
Requires:
Field Summary | |
Object |
loadingScripts
Array of objects that are loading. |
Object |
loadOrdered
|
Object |
loadState
Determines which Mapbuilder scripts are loading. |
Object |
orderedScripts
Array of scripts that have to be loaded ordered |
Object |
scriptLoader
Timer to load ordered scripts |
Object |
scriptsTimer
Timer to periodically check if scripts have loaded. |
<static> Object |
Popup
Derived from OpenLayers.Popup (svn r6430) and OpenLayers.Popup.Anchored (svn r5614), this class preserves the functionality of OpenLayers.Popup.Anchored before the new style popups of http://trac.openlayers.org/ticket/926 were introduced. |
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. |
void
|
checkScriptState(script)
readyState handler for scripts - IE only. |
void
|
doLoadScript(script)
starts script loading by adding the script node to the dom tree - IE only. |
void
|
loadNextScript()
loads one script after another - only for IE. |
void
|
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 |
void
|
setLoadState(newState)
Move onto loading the next set of scripts. |
<static> Object
|
getProperty(domNode, propertyName, defaultValue)
Convenience method that is used to parse dom nodes. |
<static> Object
|
parseBoolean(value)
Convenience method to parse a string or number as a boolean value |
Field Detail |
Object loadingScripts
Object loadOrdered
Object loadState
Object orderedScripts
Object scriptLoader
Object scriptsTimer
<static> Object Popup
Constructor Detail |
Mapbuilder()
Method Detail |
void checkScriptsLoaded()
void checkScriptState(script)
void doLoadScript(script)
void loadNextScript()
void loadScript(url)
url
- The url of the script. that loadScript was called
void loadScriptsFromXpath(nodes,dir)
dir
- The directory the script is located in.
xPath
- Xpath match of components from the Config file.
void setLoadState(newState)
newState
- The new loading state.
<static> Object getProperty(domNode, propertyName, defaultValue)
domNode
- node to find the property in
propertyName
- string of the property name (including namespace prefix)
defaultValue
- value to return if property is not found (null by default)
<static> Object parseBoolean(value)
value
- string (true/false) or number (1/0)
|
Community Map Builder 27 Apr 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |