Traffic flow playground
Filter live traffic flow by road category, and click a road for its speed and closure readings.
Untick a road category and the flow colouring leaves those roads. Click any coloured road for its speed and closure readings.
TrafficFlowModule.getwith{ visible: true }colours the roads as the module resolves.events.on('click', …)delivers the clicked segment as a typedTrafficFlowModuleFeature, withrelativeSpeedandroadClosurealready onproperties.filters, given toupdateConfig, applies aroadCategoriesclause to layers the style already draws, so nothing is re-fetched, andfilters: undefineddrops the filter again.
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