Traffic incidents playground
Show live and planned traffic incidents, narrow them by severity, and click one for its delay and history.
Bring in the planned roadworks and closures next to the ones under way, narrow them by severity, and click one to read its delay and report history.
TrafficIncidentsModule.getwith{ visible: true }draws the incidents the map style already carries.timeValidityswaps the tiles the module asks for, so planned incidents land in the same layers, popup and filters as live ones.filterstakes amagnitudesclause, so narrowing severity filters drawn layers rather than sending a second request.setLanguagetranslates the incident descriptions along with the map labels.events.on('click', …)yields a typedTrafficIncidentsModuleFeaturefor the popup.
Related examples
Bloom playground
Every bloom knob on one panel, including the scope that decides which part of the map is allowed to glow.
Playground
Traffic
Map Style
Plugins
Web
Map Chat Agent
Ask a chat beside the map for places, routes or traffic, and watch the map search, draw and frame the answer
Playground
AI
Search and Geocoding
Places and POIs
Map Style
Base Map
Geometry
Traffic
Routing
Plugins
Web
React
Map Chat Agent State Playground
A map chat whose every result lands in a side panel, where you can show, hide or drop it yourself
Playground
AI
Search and Geocoding
Places and POIs
Map Style
Base Map
Geometry
Traffic
Routing
Bring Your Own Data
Plugins
Web
React
Config playground
Interactive controls for map styling and layer management
Playground
Map Style
Base Map
Traffic
Web