Small library that provides mapfile data. it include width,height, upper left x,y and lower right x,y. This data includes multi-floor maps such as the new instances.

API Documentation

To get the mapfile names use GetMapInfo() on the current map. Filenames are constant across localizations.

Sample usage:

     mapfiles = LibStub("LibMapData-1.0"); 
     -- get the size of Coth defaulting to the first floor size
     local width,height = mapfiles:MapArea('CoTStratholme')
     -- get the size of the 8th floor of icc 
     width,height = mapfiles:MapArea('IcecrownCitadel',8) 
     -- get the size of the Arati mapfile.
     width,height = mapfiles:MapArea('Arathi')

The floors are optional and if a given floor is not found 0,0 will be returned. This lib came about as a result of several addons needing the data, and simply copying and pasting them in each copy occupies around 44k of memory.

LibMapData now supports Mapchanged callback event. Sample usage:

mapfiles = LibStub("LibMapData-1.0"); 
mapfiles:RegisterCallback("MapChanged",function(event,map,floor,w,h) print("Map is now " end

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of kagaro kagaro Dec 02, 2011 at 00:28 UTC - 0 likes

    tagging a new release now

  • Avatar of mysticalos mysticalos Dec 01, 2011 at 20:28 UTC - 0 likes

    the datamined data for dragonsoul is incorrect for 2-3

    this is the data i came up with using manual verification to confirm the data. 1 and 4 are correct 2 and 3 were way off and obvious when i was in zone trying to use that libmapdata's data

    DragonSoul: 1, 3106.5011727905, 2063.0599688936,  -- Dragonblight
    DragonSoul: 2, 397.49887572464, 264.99992263558,  -- Maw of Go'rath
    DragonSoul: 3, 427.50311666243, 285.00046747363,  -- Maw of Shu'ma
    DragonSoul: 4, 185.18967803794, 123.4686967775,  -- Eye of Eternity

    Last edited Dec 01, 2011 by mysticalos
  • Avatar of kagaro kagaro Nov 28, 2011 at 13:02 UTC - 0 likes

    ThePants99 - yes Cyprias - Yes

    License was set as all rights reserved to counter those 3rd party rehosting sites

  • Avatar of ThePants999 ThePants999 Sep 10, 2011 at 18:30 UTC - 0 likes

    Hi - can I get permission to use this in my addon?

  • Avatar of gOOvER gOOvER Jul 15, 2011 at 07:51 UTC - 0 likes

    Bad idea to add no Licence. Noone can use this Lib in own addons ;)

  • Avatar of Cyprias Cyprias Jul 08, 2011 at 04:19 UTC - 0 likes

    Hey kagaro, can I get permission to use your library in my addon TotemRadius? Your license is All Rights Reserved so though I'd ask first.

  • Avatar of mysticalos mysticalos Jul 02, 2011 at 15:21 UTC - 0 likes

    wait blizz hot fixed it? sigh.

  • Avatar of kagaro kagaro Jul 02, 2011 at 00:15 UTC - 0 likes

    Issue solved, they didnt flag the map in the dbc files as being mixed outdoors mode and had the floors in backwards. extractor now accounts for that

  • Avatar of kagaro kagaro Jul 01, 2011 at 23:20 UTC - 0 likes

    Mysticalos can you double check the area I'd isn't swapping on those floors

  • Avatar of mysticalos mysticalos Jul 01, 2011 at 18:08 UTC - 0 likes

    i say try to find something closely resembling 1587.0, 1058.0

    i remember ulduar for example, was also goofy in this way, the staging area was listed under a diff zone, and rest of sizes were listed with wrong area ids. something similar could be at work here, i'm sure the sizes are just at the wrong numbers because of the spit. 1587.0, 1058.0 is probably not perfect exact and i'd like more precise, still can't open mpq files on my mac though :( mpq extractors haven't worked since format was changed in 4.x


Date created
May 30, 2010
Last update
Dec 22, 2014
Development stage
  • enUS
All Rights Reserved
Curse link
Reverse relationships
Recent files
  • A: r147 for 6.0.3 Dec 22, 2014
  • A: r146 for 6.0.3 Nov 21, 2014
  • R: 0.31 for 6.0.2 Oct 17, 2014
  • A: r144 for 6.0.2 Oct 17, 2014
  • A: r143 for 6.0.2 Oct 16, 2014



Tool used
Embedded library