Change zoom type to enum.