WoW API: GetMapNameByID

From AddOn Studio
Jump to navigation Jump to search

WoW API < GetMapNameByID

Returns the localized name for a mapID.

mapname = GetMapNameByID(mapID)


  • mapID (number) - The mapID of the map to retrieve the name for


  • mapname (string) - The real name of an instance or zone map


 mapID = GetCurrentMapAreaID()
 mapname = GetMapNameByID(mapID)
 print("Map:"..mapname )
An message appears in the chat window showing the following text: "Map: The Stockade"

See also[edit]