Add delete functionality on rightclick to polyline object.