Traffic flow with bloom

Light up live traffic over a mono dark map with the map-effects plugin's bloom.

View on GitHub
Map effects plugin 0.4.2Public previewSDK 1.0.0

Manhattan at night stays grey while its live traffic glows, as far as the panel lets it.

  • TrafficFlowModule.get and TrafficIncidentsModule.get draw live traffic on the roads the style already ships, with no source or layer wiring.
  • The flow module’s widthFactor widens the flow tubes, which gives the glow something to spread. A light can only bleed what the map drew.
  • bloom.only keeps that light on the colours the loaded style paints traffic in, so the white labels stay crisp however hard the glow burns.

Related examples