GetCurrentMapAreaID
Jump to navigation
Jump to search
Links |
---|
Info |
Added in 3.1.0 |
This no longer exists on any flavor of the game. |
This is no longer a part of the World of Warcraft API.
|
Returns the WorldMapAreaID of the currently displayed area map, and whether quest objectives should be shown.
mapID, isContinent = GetCurrentMapAreaID()
Returns
- mapID
- number - WorldMapAreaID of the currently displayed area map
- isContinent
- boolean - from FrameXML's QuestMapFrame.lua, it is false for for any zone map, and true for Cosmic, Azeroth, and Maelstrom maps. Presumably used to determine if quest objectives should be shown or not.
Notes
- This can be used as a locale-independent way to identify zones.
- Since this function identifies the current map, rather than the current zone, if you want the mapID for the current zone, you should call SetMapToCurrentZone before calling this function. However, you should not do this when the map UI is visible, as the user may be intentionally viewing another zone's map, and this function will change the displayed map without any confirmation or warning.
See also
- GetQuestWorldMapAreaID
- SetMapByID
- SetMapToCurrentZone
- C_Map.GetBestMapForUnit
- WorldMapFrame:GetMapID
- Patch_8.0.1/API_changes