Gl line feature

Rebased version of #138.