Oh, you want the lines to move around with the map? You can pass in the transform of the map:
- Vector.DrawLine (mapLine, map.transform);
Note that in order for the line to move exactly with the map, the line must be made with Vector3 points. If you use Vector2 points, then you're using screen space coordinates for the line, but world space coordinates for the transform. So they don't match. I'm not really sure offhand how you could get Vector2 points to move with a transform so they match. It probably involves WorldToScreenPoint somehow.