You have to differentiate between a map id and a zone id. The map id corresponds to a 2d map that you see when you open the map menu, while zone ids identify the 3d level your character is in. There is also no relationship between those two ids - a zone can have any number of maps and a map can have any number of zones.
You can print the map id to chat by opening the map menu, selecting the map you want to know the id for and then entering the following command in chat:
Code:
/script d(GetCurrentMapId())
The zone id for the location your character is currently in can be printed in a similar way:
Code:
/script d(GetZoneId(GetUnitZoneIndex("player"))