Fandom

WoWWiki

API SetMapZoom

104,757pages on
this wiki
Add New Page
Talk0 Share
WoW API < SetMapZoom

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

SetMapZoom(continentIndex [,zoneIndex])

ParametersEdit

ArgumentsEdit

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.

ExampleEdit

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

==

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.