Add polyline click event.