Timemap.js v.1.6

Class TimeMap.loaders.xml

Extends:
TimeMap.loaders.remote
Requires:
param.js
Defined in:
xml.js

This is a base loader class for XML files.

Constructor

TimeMap.loaders.xml(options)

Fields

Field
Additional parameters to load
Inherited from TimeMap.loaders.base
scrollTo :{String|Date}
Date to scroll the timeline to on load
Inherited from TimeMap.loaders.remote
url :{String}
URL to load

Methods

Method
Inherited from TimeMap.loaders.base
getCallback(dataset, callback)
Get a callback function that can be cancelled.
Inherited from TimeMap.loaders.base
getCallbackName(dataset, callback)
Get the name of a callback function that can be cancelled.
Inherited from TimeMap.loaders.remote
load(dataset, callback)
Load function for remote files.
Inherited from TimeMap.loaders.base
parse()
Parser function to turn a string into a JavaScript array
parseExtra(config, node)
Parse any extra tags that have been specified into the config object
Inherited from TimeMap.loaders.base
Function to call on data object before loading
Inherited from TimeMap.loaders.base
Function to call on a single item data object before loading
Class Detail
TimeMap.loaders.xml(options)
Parameters (optional)
options {Object} All options for the loader
options.url {String} URL of XML file to load (NB: must be local address)
options.tagMap {Object} Map of tagName:paramName pairs, if you want to load data into a differently-named elements
options[...] {mixed} Other options (see TimeMap.loaders.remote)
Returns:
{TimeMap.loaders.remote} Remote loader configured for XML
Field Details
extraParams :{TimeMap.params.OptionParam[]}
Additional parameters to load
Method Details
parseExtra(config, node)
Parse any extra tags that have been specified into the config object
Parameters (optional)
config {Object} Config object to modify
node {XML NodeList} Parent node to look for tags in
©2010 Nick Rabinowitz
Documentation generated by JsDoc Toolkit 2.3.2 on Thu Jun 24 2010 13:58:02 GMT-0700 (PDT)