Generate map classes