Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:API GetMapInfo
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} mapFileName, textureHeight, textureWidth, isMicrodungeon, microDungeonMapName = GetMapInfo(); Return the map information about the current world map texture. == Parameters == === 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) == Details == 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.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)