m
Move page script moved page API SetMapZoom to WoW:API SetMapZoom without leaving a redirect
No edit summary |
m (Move page script moved page API SetMapZoom to WoW:API SetMapZoom without leaving a redirect) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
Sets what is displayed by the current world map to a specific continent and zone. | Sets what is displayed by the current world map to a specific continent and zone. | ||
SetMapZoom(continentIndex [,zoneIndex]) | SetMapZoom(continentIndex [,zoneIndex]) | ||
==Parameters== | |||
===Arguments=== | |||
:;continentIndex : Number - Specifies the continent corresponding to the numbers of [[API_GetMapContinents|GetMapContinents()]], in addition to 0 for Azeroth and -1 for the Cosmic map. | |||
:;continentIndex : Number - Specifies the continent corresponding to the numbers of [[API_GetMapContinents|GetMapContinents()]], | |||
:;zoneIndex : Number - Specifies the zone corresponding to the numbers of [[API_GetMapZones|GetMapZones(continentIndex)]], omit for whole continent. | :;zoneIndex : Number - Specifies the zone corresponding to the numbers of [[API_GetMapZones|GetMapZones(continentIndex)]], omit for whole continent. | ||
==Example== | |||
SetMapZoom(2, 10); -- Set the current map zoom of the world map to Elvynn Forrest. | |||
SetMapZoom(2, 10); -- | SetMapZoom(2); -- Shows the Eastern Kingdoms. | ||
SetMapZoom(2 | SetMapZoom(0); -- Shows both continents. | ||
SetMapZoom( | SetMapZoom(-1); -- Shows the cosmic map. | ||
SetMapZoom( | WorldMapFrame:Show(); | ||
== | |||