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(rss)
Static function to parse GeoRSS
|
Fields
Field | |
---|---|
![]() |
Additional parameters to load
|
![]() |
scrollTo
:{String|Date}
Date to scroll the timeline to on load
|
![]() |
url
:{String}
URL to load
|
Methods
Method | |
---|---|
![]() |
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 files.
|
parse(rss)
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) | ||
---|---|---|
rss | {String} | GeoRSS string to be parsed |
- Returns:
- {TimeMapItem[]} Array of TimeMapItems
Method Details
Static function to parse GeoRSS
Parameters (optional) | ||
---|---|---|
rss | {String} | GeoRSS string to be parsed |
- Returns:
- {TimeMapItem[]} Array of TimeMapItems
©2010 Nick Rabinowitz
Documentation generated by JsDoc Toolkit 2.3.2 on Thu Jun 24 2010 13:58:01 GMT-0700 (PDT)
Documentation generated by JsDoc Toolkit 2.3.2 on Thu Jun 24 2010 13:58:01 GMT-0700 (PDT)