Using Voronoi polygons in Mapbox for easier point selection

Borrowing the same technique used by Mike Bostock for improved mouseover interactions in d3 charts, it is possible to draw Voronoi polygons using Turf.js and select the attributes of the points within.

Hide Voronoi

Data: Toronto Police Service

By: MapTO

Code: Github