Made points.add({x: 0, y: 0}) not force the linestring to 3D.