Fandom

WoWWiki

API GetMapInfo

104,634pages on
this wiki
Add New Page
Talk0 Share

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.

WoW API < GetMapInfo
mapFileName, textureHeight, textureWidth, isMicrodungeon, microDungeonMapName = GetMapInfo();

Return the map information about the current world map texture.


Arguments
none

Returns
mapFileName, textureHeight, textureWidth
mapFileName 
String - The name of the file containing the textures for the current world map (nil for the whole world, BUT the official API catches this with a comment of Temporary Hack and uses the value "World" instead!)
textureHeight 
Number - The height of the specified texture (0 if no texture)
textureWidth 
Number - The width of the specified texture (0 if no texture) (This is a guess, it's not used in the UI)
isMicroDungeon 
Boolean - True if the current map is a MicroDungeon, False otherwise.
microDungeonMapName 
String - The name of the map for the current MicroDungeon, if applicable. (ex. ShrineofSevenStars)

DetailsP

Note that the width and height aren't in a consistent order with most of the other API functions. Neither of the values are used by the UI so it's impossible to tell whether this is a deliberate inconsistency or a typo! The return values would appear to imply they are, however, reversed from the usual width, height convention.

Also on Fandom

Random Wiki