Traffic incidents map

Display a traffic incidents map

View on GitHub
SDK 1.0.0-rc.7

The map opens on Paris with its current traffic incidents already on it. Each affected stretch is drawn in a darker line and marked with a category icon.

  • TrafficIncidentsModule.get binds to the incident layers the map style already carries, so there is no incident request, source or icon set to manage.
  • The { visible: true } option turns them on as the module resolves, so the first frame already shows them.

Related examples