Note: LibMapData-1.0 is unmaintained, a suggested replacement library is HereBeDragons-1.0

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 Apr 24, 2011 at 14:26 UTC - 0 likes

    if you zone into BT you dont get a map, and it reports its zone as ShadowMoonValley. then to boot you dont even get coords inside

  • Avatar of mysticalos mysticalos Apr 24, 2011 at 00:17 UTC - 0 likes

    wtb black temple and sunwell data not being half assed/incomplete. sigh at blizzard leaving things unfinsihed

    Last edited Apr 24, 2011 by mysticalos
  • Avatar of fbrevoort fbrevoort Apr 23, 2011 at 23:05 UTC - 0 likes

    Thanks for the 4.1 update!

  • Avatar of yoshimo yoshimo Apr 23, 2011 at 13:54 UTC - 0 likes

    @ fbrevoort should be done with r82

  • Avatar of fbrevoort fbrevoort Apr 17, 2011 at 08:25 UTC - 0 likes

    any plan update coming for BC maps in 4.1?

  • Avatar of silvanndev silvanndev Jan 21, 2011 at 03:43 UTC - 0 likes


    Minor thing: Orgrimmar has a new floor: Cleft of Shadow. Not necessary in my addon, but just thought I should post that.

  • Avatar of kagaro kagaro Dec 05, 2010 at 17:47 UTC - 0 likes

    they may put it back in, seems liek the keep putting it in and taking it out.

  • Avatar of mysticalos mysticalos Dec 02, 2010 at 06:38 UTC - 0 likes

    sad they changed their mind about BC maps :( i was so looking forward to complete deprication of zone name based location detections.

  • Avatar of myrroddin myrroddin Oct 27, 2010 at 22:23 UTC - 0 likes

    Just curious, I was playing with Addon Control Panel, and saw Lib:MapData-1.0 version 1.0.61 as not compatible with patch 4.01 is that because you still have the Compatible-With tag?

    It is working just fine, afaik, regardless.

  • Avatar of kagaro kagaro Oct 03, 2010 at 21:25 UTC - 0 likes

    I've got all the map data in the lib just missing the textures themselves for all bc instances


Date created
May 30, 2010
Last update
Jul 20, 2016
Development stage
  • enUS
All Rights Reserved
Curse link
Reverse relationships
Recent files
  • A: r148 for 6.0.3 Jul 20, 2016
  • 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



Tool used
Embedded library