Returns which map image is currently selected on the world map (for zones which use more than one map image). Used in zones with more than one "floor" or area, such as Dalaran and several Wrath of the Lich King dungeons and raids. More than one map image may contain the player's current location; if the world map has not been explicitly set to show a particular area, this returns whichever is the "best" match.

The coordinates provided are used to place the different dungeon maps relative to each other.

See also Map functions.


dungeonLevel, x1, y1, x2, y2 = GetCurrentMapDungeonLevel()


  • dungeonLevel - Index of the current map image (number)
  • x1 - The x coordinate of the left side of the map (number)
  • y1 - The y coordinate of the top side of the map (number)
  • x2 - The x coordinate of the right side of the map (number)
  • y2 - The y coordinate of the bottom side of the map (number)