Class TimeMap.loadManager
- Defined in:
- timemap.js
Static singleton for managing multiple asynchronous loads
Constructor
Methods
Method | |
---|---|
complete()
Function to fire when all loads are complete.
|
|
Increment the count of loaded datasets
|
|
init(tm, target, options)
Initialize (or reset) the load manager
|
Method Details
complete()
Function to fire when all loads are complete.
Default behavior is to scroll to a given date (if provided) and
layout the timeline.
increment()
Increment the count of loaded datasets
init(tm, target, options)
Initialize (or reset) the load manager
Parameters (optional) | ||
---|---|---|
tm | {TimeMap} | TimeMap instance |
target | {Number} | Number of datasets we're loading |
options | {Object} | Container for optional settings |
options.dataLoadedFunction | {Function} | Custom function replacing default completion function; should take one parameter, the TimeMap object |
options.scrollTo | {String|Date} | Where to scroll the timeline when load is complete Options: "earliest", "latest", "now", date string, Date |
options.dataDisplayedFunction | {Function} | Custom function to fire once data is loaded and displayed; should take one parameter, the TimeMap object |
©2010 Nick Rabinowitz
Documentation generated by JsDoc Toolkit 2.3.2 on Sat Aug 06 2011 13:40:08 GMT-0700 (PDT)
Documentation generated by JsDoc Toolkit 2.3.2 on Sat Aug 06 2011 13:40:08 GMT-0700 (PDT)