Map traffic config playground
Swap traffic presets, from flow only to icon-less incidents, and fine-tune flow and incidents one setting at a time
One dropdown repaints the traffic picture, from flow only to icon-less incidents, and the controls under it follow each preset or change one setting, a road or incident filter included.
TrafficIncidentsModule.getandTrafficFlowModule.getbind to the traffic layers the map style already carries.applyConfigtakes a wholeTrafficFlowModuleConfigorTrafficIncidentsModuleConfig, so a preset swap is two calls, andconfig-changetells the controls.trafficFlowKnobCatalogueandtrafficIncidentsKnobCataloguegive each setting’s kind, options and default, so the controls are generated.setKnobsets one by its id and keeps the rest, so a filter’s mode and its values add up with no config merging.
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