Timemap.js v.2.0.1

Class TimeMap.loaders.kml

Extends:
TimeMap.loaders.xml
Requires:
loaders/xml.js
param.js
Defined in:
kml.js
See:
KML Example
KML ExtendedData Example

KML loader: load KML files.

This is a loader class for KML files. Currently supports all geometry types (point, polyline, polygon, and overlay) and multiple geometries. Supports loading ExtendedData through the extendedData parameter.


TimeMap.init({
    datasets: [
        {
            title: "KML Dataset",
            type: "kml",
            options: {
                url: "mydata.kml"   // Must be local
            }
        }
    ],
    // etc...
});

Constructor

TimeMap.loaders.kml(options)

Static Methods

Method
TimeMap.loaders.kml.parse(kml)
Static function to parse KML with time data.

Fields

Field
Inherited from TimeMap.loaders.xml
Additional parameters to load
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.xml
load(dataset, callback)
Load function for remote XML files.
parse(kml)
Static function to parse KML with time data.
Inherited from TimeMap.loaders.xml
parseExtra(config, node)
Parse any extra tags that have been specified into the config object
Inherited from TimeMap.loaders.base
Function to call on data object before loading
Inherited from TimeMap.loaders.base
Function to call on a single item data object before loading
Class Detail
TimeMap.loaders.kml(options)
Parameters (optional)
options {Object} All options for the loader
options.url {String} URL of KML file to load (NB: must be local address)
options.extendedData {String[]} Array of names for ExtendedData data elements
options[...] {mixed} Other options (see TimeMap.loaders.xml)
Returns:
{TimeMap.loaders.xml} Loader configured for KML
Static Method Details
TimeMap.loaders.kml.parse(kml) :{TimeMapItem Array}
Static function to parse KML with time data.
Parameters (optional)
kml {XML} KML node to be parsed
Returns:
{TimeMapItem Array} Array of TimeMapItems
Method Details
parse(kml) :{TimeMapItem Array}
Static function to parse KML with time data.
Parameters (optional)
kml {XML} KML node to be parsed
Returns:
{TimeMapItem Array} Array of TimeMapItems
©2010 Nick Rabinowitz
Documentation generated by JsDoc Toolkit 2.3.2 on Sat Aug 06 2011 13:40:08 GMT-0700 (PDT)