Timemap.js v.2.0.1

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
Inherited from TimeMap.loaders.remote
opts :{String}
Object to hold optional settings.
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.
Inherited from TimeMap.loaders.remote
load(dataset, callback)
Load function for remote files.
Inherited from TimeMap.loaders.base
parse()
Parser function to turn a string into a JavaScript array
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)