WoW API: SetMapZoom
Jump to navigation
Jump to search
← 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); -- 1. SetMapZoom(2); -- 2. SetMapZoom(0); -- 3. SetMapZoom(-1); -- 4. WorldMapFrame:Show();
Results
- Set the current map zoom of the world map to Elvynn Forrest.
- Shows the Eastern Kingdoms
- Shows both continents
- Shows the cosmic map.