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.getbinds 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
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 flow map
Display a traffic flow map
Getting Started
Traffic
Web