Traffic area analytics playground

Explore traffic area analytics for different locations

View on GitHub
SDK 1.0.0-rc.7

Type a city or click its label on the map, and a grid of traffic cells loads over it.

  • geocode resolves the name, geometryData turns it into the polygon trafficAreaAnalytics wants, and TrafficAreaAnalyticsModule.show draws the response unchanged.
  • setPalette, and updateConfig with an activeMetric or a displayMode, redraw from data the module already holds, because the request asked for every metric at once.
  • setEventState selects the most congested cell like a click, and getEventStates keeps it on the nearest cell of a new grid.
  • BaseMapModule with events.where({ layerGroups }) splits clicks on city labels from clicks anywhere else.

Related examples