Finally fixed the marker rotation problem.