Refactored some code into Map:SetCameraType.