You will not be eligible to leave the airport with just a Canadian transit visa while you await your connecting flight to your destination country. You will only legally be allowed to leave the airport if you also have a temporary resident visa like a valid visitor visa that allows you to visit Canada.