Add click support for polylines.