Timemap.js v.2.0.1

Class TimeMap.loaders.basic

Extends:
TimeMap.loaders.base
Defined in:
timemap.js
See:
Basic Example

Basic loader class, for pre-loaded data. Other types of loaders should take the same parameter.

TimeMap.init({
    datasets: [
        {
            type: "basic",
            options: {
                data: [
                    // object literals for each item
                    {
                        title: "My Item",
                        start: "2009-10-06",
                        point: {
                            lat: 37.824,
                            lon: -122.256
                        }
                    },
                    // etc...
                ]
            }
        }
    ],
    // etc...
});

Constructor

TimeMap.loaders.basic(options)

Fields

Field
data :{Object[]}
Array of item data to load.
Inherited from TimeMap.loaders.base
scrollTo :{String|Date}
Date to scroll the timeline to on load

Methods

Method
Inherited from TimeMap.loaders.base
cancel()
Cancel the callback function for this loader.
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.
load(dataset, callback)
Load javascript literal data.
Inherited from TimeMap.loaders.base
parse()
Parser function to turn a string into a JavaScript array
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.basic(options)
Parameters (optional)
options {Object} All options for the loader
options.data {Array} Array of items to load
options[...] {mixed} Other options (see TimeMap.loaders.base)
Field Details
data :{Object[]}
Array of item data to load.
Default Value:
[]
Method Details
load(dataset, callback)
Load javascript literal data. New loaders should implement a load function with the same signature.
Parameters (optional)
dataset {TimeMapDataset} Dataset to load data into
callback {Function} Function to call once data is loaded
©2010 Nick Rabinowitz
Documentation generated by JsDoc Toolkit 2.3.2 on Sat Aug 06 2011 13:40:07 GMT-0700 (PDT)