Maps SDK for Web

tt.TrafficFlowTilesTier

This tier provides Traffic Flow information.

var map = tt.map({
 //your map configuration
});
map.on('load', function() {
    map.addTier(new tt.TrafficFlowTilesTier({
        key: <api key>//your traffic flow api key goes here
        //or provide more detailed configuration
    }))
});

Methods

constructor(options, [position=2])

Parameters
Name Description
options
Object
default:None
Traffic flow configuration options
options.key
String
default:None
Traffic flow api key
options.style
String
default:None
The url pointing to a traffic flow style. Either this option or 'options.theme' may be provided but not both
options.theme
ITrafficFlowTilesThemeOptions
default:None
The set of parameters describing the chosen predefined traffic flow theme. Either this option or 'options.style' may be provided but not both.
options.refresh
Number
default:30000
The interval in milliseconds between subsequent refreshes of traffic flow information. Any value lower than 30000 will be treated as 30000
position
Number
default:2
The tier's position in a map style