Fixed some map view related logic.