Change to how calc_line_layer is used, no longer does any internal drawing