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)
Parameters
Name | Description |
---|---|
options
Object default:None |
Traffic flow configuration options |
options.key
String default:None |
Traffic flow api key |
options.style
String default:'tomtom://vector/1/relative' |
The map style.
It can be one of following types:
|
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 |
getId( ): String
Returns tier's ID
Returns