Wowpedia

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

READ MORE

Wowpedia
(Added category link)
Xporcbot (talk | contribs)
m (→‎top: clean up, replaced: {{removed → {{Removed)
Tag: WoW API docs
 
(10 intermediate revisions by 8 users not shown)
Line 1: Line 1:
  +
{{Removedapi|8.0.1|It's no longer needed to call this function in order to get the current map. See {{api|C_Map.GetBestMapForUnit}}.}} __NOTOC__
<center>'''SetMapToCurrentZone''' ''-Documentation by [[user:Meog|Meog]]-''</center>
 
 
Sets the world map to display the zone the player is currently in.
 
Sets the current world map continent and zone to be the zone the player is currently in.
 
   
 
SetMapToCurrentZone()
 
SetMapToCurrentZone()
   
 
==Details==
----
 
 
After an interface reload, this function only sets the zoom to the continent the player is on, and not to the zone, until the zone changes at least once.
;''Arguments''
 
 
:''none''
 
 
----
 
;''Example''
 
SetMapToCurrentZone();
 
 
;''Result''
 
:World map zoom changes (if necessary)
 
 
----
 
;''Details''
 
   
  +
==Notes==
: Important note: This function seems to have a bug after "reloadui". Then it only sets the zoom to the continent the player is on and not to the zone until the zone changes at least once.
 
  +
This function triggering event QUEST_LOG_UPDATE.
   
  +
==See also==
----
 
  +
* [[API GetCurrentMapAreaID|GetCurrentMapAreaID]]
{{Template:WoW API}}
 
  +
* [[API GetQuestWorldMapAreaID|GetQuestWorldMapAreaID]]
[[Category:API Functions|SetMapToCurrentZone]]
 
  +
* [[API SetMapByID|SetMapByID]]

Latest revision as of 18:14, 4 April 2020

Sets the world map to display the zone the player is currently in.

SetMapToCurrentZone()

Details

After an interface reload, this function only sets the zoom to the continent the player is on, and not to the zone, until the zone changes at least once.

Notes

This function triggering event QUEST_LOG_UPDATE.

See also