The map opens on Paris with every road coloured by how freely traffic is moving on it, from motorways down to side streets.
TrafficFlowModule.getreturns the controller for the flow layers the map style already ships, so there is no source, layer or tile URL to wire up.- Passing
{ visible: true }to that same call switches them on as the style loads, so the first frame is already traffic-coloured.
Related examples
Route departure time
Plan one trip into Amsterdam for departures across the next weekday and pick the fastest.
Getting Started
Routing
Traffic
Web
Route with traffic monitoring
Dynamic route recalculation with live traffic updates
Getting Started
Routing
Traffic
Web
Traffic area analytics
Display traffic area analytics for a geocoded city
Getting Started
Traffic
Web
Traffic incidents map
Display a traffic incidents map
Getting Started
Traffic
Web