Fix flowline layer visibility

It works, but seems laggy for some reason
Please try not to check in commented out code.