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 Jul 08, 2012 at 13:58 UTC - 0 likes

    @kaelspriest: Go

    go for it

  • Avatar of kagaro kagaro Apr 14, 2012 at 21:35 UTC - 0 likes

    i need to regerenate data

  • Avatar of wxx011 wxx011 Apr 03, 2012 at 04:56 UTC - 0 likes

    Entering darkmoonfaire It shows LibMapData-1.0 is missing data for 823

  • Avatar of kaelspriest kaelspriest Jan 23, 2012 at 21:29 UTC - 0 likes

    May I have permission to use this in my addon? (raidframes)

  • Avatar of iispyderii iispyderii Dec 19, 2011 at 16:07 UTC - 0 likes

    If you look at the API documentation for GetPlayerMapPosition() you will see that it returns (0,0) for all classic instances except for Northrend; so I believe that is not the case. As I said, it was working in the PTR but i think i had some of the values mixed up.

  • Avatar of michaelspain michaelspain Dec 17, 2011 at 02:17 UTC - 0 likes

    Seems a blizzard fault, in Warmaster blackhorn area:
    GetPlayerMapPosition("player")  always returns 0,0 instead of valid coordintates.
    So it is not posible to fix the issue.

    Last edited Dec 17, 2011 by michaelspain
  • Avatar of iispyderii iispyderii Dec 16, 2011 at 18:41 UTC - 0 likes

    I'm getting the same as Remota. I had it working in the PTR at one point but now it's not working showing placements for PoH and CoH from GridStatusPriestAoE. Given the maps are so small it really doesn't matter too much but it's nice to have an optimal placement for the spells.

  • Avatar of Remota Remota Dec 13, 2011 at 20:17 UTC - 0 likes

    warmaster blackhorn and spine of deathwing doesn't work for me..

  • 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


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