block by armollica a2adf7b67f73316f64be

Labeling Nearest Points

Full Screen

Display labels for points close to the mouse cursor. Could be used to display multiple tooltips, etc.

Uses k-nearest-neighbors algorithm from this block by llb4ll. Check the box to see the underlying quadtree (red points are the nearest points, orange are those that were searched but found to be not among the nearest).

index.html

k-nearest-neighbors.js