Class TimeMap.loaders.flickr
- Extends:
- TimeMap.loaders.jsonp
- Requires:
- loaders/json.js
- Defined in:
- flickr.js
- See:
- Flickr Pathlines Example
Flickr loader: Load JSONP data from Flickr.
This is a loader for Flickr data. You probably want to use it with a URL for the Flickr Geo Feed API: http://www.flickr.com/services/feeds/geo/
The loader takes a full URL, minus the JSONP callback function.
TimeMap.init({ datasets: [ { title: "Flickr Dataset", type: "flickr", options: { // This is just the latest geotagged photo stream - try adding // an "id" or "tag" or "photoset" parameter to get what you want url: "http://www.flickr.com/services/feeds/geo/?format=json&jsoncallback=?" } } ], // etc... });
Constructor
TimeMap.loaders.flickr(options)
Fields
Field | |
---|---|
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 files.
|
|
parse()
Parser function to turn a string into a JavaScript array
|
|
preload()
Preload function for Flickr feeds
|
|
Transform function for Flickr feeds
|
Class Detail
TimeMap.loaders.flickr(options)
Parameters (optional) | ||
---|---|---|
options | {Object} | All options for the loader |
options.url | {String} | Full JSONP url of Flickr feed to load |
options[...] | {mixed} | Other options (see TimeMap.loaders.jsonp) |
Method Details
preload()
:{Array}
Preload function for Flickr feeds
- Returns:
- {Array} data Array of item data
transform()
:{Object}
Transform function for Flickr feeds
- Returns:
- {Object} data Transformed data for one item
©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)