WoW:API SetMapZoom: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (The results' numbered list was confusing since the same range of numbers are used when calling SetMapZoom())
No edit summary
Line 14: Line 14:
  SetMapZoom(-1); -- Shows the cosmic map.
  SetMapZoom(-1); -- Shows the cosmic map.
  WorldMapFrame:Show();
  WorldMapFrame:Show();
==

Revision as of 14:22, 8 September 2010

WoW API < SetMapZoom

Sets what is displayed by the current world map to a specific continent and zone.

SetMapZoom(continentIndex [,zoneIndex])

Parameters

Arguments

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

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();

==