Windshield cover from sun with magnetic edges