WoW:API SetMapZoom: Difference between revisions
Jump to navigation
Jump to search
({{wowapi}}, formatting, cosmic map.) |
m (Move page script moved page API SetMapZoom to API SetMapZoom without leaving a redirect) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 9: | Line 9: | ||
==Example== | ==Example== | ||
SetMapZoom(2, 10); -- | SetMapZoom(2, 10); -- Set the current map zoom of the world map to Elvynn Forrest. | ||
SetMapZoom(2); -- | SetMapZoom(2); -- Shows the Eastern Kingdoms. | ||
SetMapZoom(0); -- | SetMapZoom(0); -- Shows both continents. | ||
SetMapZoom(-1); -- | SetMapZoom(-1); -- Shows the cosmic map. | ||
WorldMapFrame:Show(); | WorldMapFrame:Show(); | ||
== | == | ||
Latest revision as of 04:47, 15 August 2023
← WoW API < SetMapZoom
Sets what is displayed by the current world map to a specific continent and zone.
SetMapZoom(continentIndex [,zoneIndex])
Parameters[edit]
Arguments[edit]
- continentIndex
- Number - Specifies the continent corresponding to the numbers of GetMapContinents(), in addition to 0 for Azeroth and -1 for the Cosmic map.
- zoneIndex
- Number - Specifies the zone corresponding to the numbers of GetMapZones(continentIndex), omit for whole continent.
Example[edit]
SetMapZoom(2, 10); -- Set the current map zoom of the world map to Elvynn Forrest. SetMapZoom(2); -- Shows the Eastern Kingdoms. SetMapZoom(0); -- Shows both continents. SetMapZoom(-1); -- Shows the cosmic map. WorldMapFrame:Show();
==