Lore archive · Warcraft Wiki, 2023 dump
API GetCurrentMapAreaID
Last wiki revision 2022-05-25
Returns the WorldMapAreaID of the currently displayed area map, and whether quest objectives should be shown. mapID, isContinent = GetCurrentMapAreaID
- mapID : - WorldMapAreaID of the currently displayed area map
- isContinent : - 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.
- 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 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.
- Patch_8.0.1/API_changes
Source
https://warcraft.wiki.gg/wiki/API_GetCurrentMapAreaID · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.