Handle click events for linestrings