GetMapNameByID

From Warcraft Wiki
Jump to navigation Jump to search
GitHub Octocat.png  Townlong-Yak BAD.png  ProfIcons engineering.png  BTNTemp.png C_Map.GetMapInfo TheWarWithin-Icon-Inline.pngDragonflight-Icon-Inline.pngCata-Logo-Small.pngWrath-Logo-Small.pngWoW Icon update.png + 8.0.1 / 1.13.2
Wowprogramming.png  BTNTemp.png GetMapInfo + 1.0.0
Wowprogramming.png  BTNTemp.png GetMapNameByID + 4.0.3

Returns the full localized name of the zone specified by the mapID

mapName = GetMapNameByID(mapID)

Parameters

mapID
Number - The WorldMapAreaID whose localized name is required

Example

local mapName = GetMapNameByID(808)
DEFAULT_CHAT_FRAME:AddMessage(mapName)

Shows the text The Wandering Isle localized to the current country

See Also