Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

Returns map information.

info = C_Map.GetMapInfo(uiMapID)

Arguments[]

uiMapID
number : UiMapID

Returns[]

info
UiMapDetails
Field Type Description
mapID number UiMapID
name string
mapType Enum.UIMapType
parentMapID number Returns 0 if there is no parent map
flags Enum.UIMapFlag Added in 9.0.1
Enum.UIMapType
Value Field Description
0 Cosmic
1 World
2 Continent
3 Zone
4 Dungeon
5 Micro
6 Orphan
Enum.UIMapFlag
Value Field Description
0x1 NoHighlight
0x2 ShowOverlays
0x4 ShowTaxiNodes
0x8 GarrisonMap
0x10 FallbackToParentMap
0x20 NoHighlightTexture
0x40 ShowTaskObjectives
0x80 NoWorldPositions
0x100 HideArchaeologyDigs
0x200 Deprecated
0x400 HideIcons
0x800 HideVignettes
0x1000 ForceAllOverlayExplored
0x2000 FlightMapShowZoomOut
0x4000 FlightMapAutoZoom
0x8000 ForceOnNavbar
0x10000 AlwaysAllowUserWaypoints
0x20000 AlwaysAllowTaxiPathing

Details[]

Related API C_Map.GetBestMapForUnit
Related Events ZONE_CHANGED
ZONE_CHANGED_NEW_AREA

Example[]

Prints the current map for the player.

/run local mapID = C_Map.GetBestMapForUnit("player"); print(format("You are in %s (%d)", C_Map.GetMapInfo(mapID).name, mapID))
-- You are in Stormwind City (84)

Patch changes[]

Battle for Azeroth Patch 8.0.1 (2018-07-17): Added. Replaces GetMapInfo() and GetMapNameByID()

Advertisement