Traffic area analytics playground
Explore traffic area analytics for different locations
Type a city or click its label on the map, and a grid of traffic cells loads over it.
geocoderesolves the name,geometryDataturns it into the polygontrafficAreaAnalyticswants, andTrafficAreaAnalyticsModule.showdraws the response unchanged.setPalette, andupdateConfigwith anactiveMetricor adisplayMode, redraw from data the module already holds, because the request asked for every metric at once.setEventStateselects the most congested cell like a click, andgetEventStateskeeps it on the nearest cell of a new grid.BaseMapModulewithevents.where({ layerGroups })splits clicks on city labels from clicks anywhere else.
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