Class TimeMap.loaders.georss
- Extends:
- TimeMap.loaders.xml
- Requires:
- loaders/xml.js
- param.js
- Defined in:
- georss.js
- See:
- GeoRSS Example
GeoRSS loader: Load GeoRSS feeds.
Parsing is complicated by the diversity of GeoRSS formats; this parser handles:
- RSS feeds
- Atom feeds
and looks for geographic information in the following formats:
- GeoRSS-Simple
- GML
- W3C Geo
At the moment, this only supports points, polygons, polylines; boxes may be added at some later point.
TimeMap.init({ datasets: [ { title: "GeoRSS Dataset", type: "georss", // Data to be loaded in GeoRSS options: { url: "mydata.rss" // GeoRSS file to load - must be a local URL } } ], // etc... });
Constructor
TimeMap.loaders.georss(options)
Static Methods
Method | |
---|---|
TimeMap.loaders.georss.parse(node)
Static function to parse GeoRSS
|
Fields
Field | |
---|---|
Additional parameters to load
|
|
opts
:{String}
Object to hold optional settings.
|
|
scrollTo
:{String|Date}
Date to scroll the timeline to on load
|
Methods
Method | |
---|---|
cancel()
Cancel the callback function for this loader.
|
|
getCallback(dataset, callback)
Get a callback function that can be cancelled.
|
|
getCallbackName(dataset, callback)
Get the name of a callback function that can be cancelled.
|
|
load(dataset, callback)
Load function for remote XML files.
|
|
parse(node)
Static function to parse GeoRSS
|
|
parseExtra(config, node)
Parse any extra tags that have been specified into the config object
|
|
preload()
Function to call on data object before loading
|
|
Function to call on a single item data object before loading
|
Class Detail
TimeMap.loaders.georss(options)
Parameters (optional) | ||
---|---|---|
options | {Object} | All options for the loader: |
options.url | {String} | URL of GeoRSS file to load (NB: must be local address) |
options[...] | {mixed} | Other options (see TimeMap.loaders.xml) |
Static Method Details
Static function to parse GeoRSS
Parameters (optional) | ||
---|---|---|
node | {XML} | GeoRSS node to be parsed |
- Returns:
- {TimeMapItem[]} Array of TimeMapItems
Method Details
Static function to parse GeoRSS
Parameters (optional) | ||
---|---|---|
node | {XML} | GeoRSS node to be parsed |
- Returns:
- {TimeMapItem[]} Array of TimeMapItems
©2010 Nick Rabinowitz
Documentation generated by JsDoc Toolkit 2.3.2 on Sat Aug 06 2011 13:40:07 GMT-0700 (PDT)
Documentation generated by JsDoc Toolkit 2.3.2 on Sat Aug 06 2011 13:40:07 GMT-0700 (PDT)