Traffic flow map

Display a traffic flow map

View on GitHub
SDK 1.0.0

The map opens on Paris with every road coloured by how freely traffic is moving on it, from motorways down to side streets.

  • TrafficFlowModule.get returns 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