LibMapData-1.0
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.
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 "..map) end
        
- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Jun 28, 2011LibMapData-1.0 is missing data for 800
- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Jun 28, 2011- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Jun 28, 2011- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Jul 2, 2011- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Jun 16, 2011Missing data for Sethekk Halls. Getting spammed with "LibMapData-1.0 is missing data for 723" as soon as I zone in.
- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Apr 24, 2011yeah i saw that, i went on ptr just to see what was up and was disapinoted by this, and the fact sunwell map is also only about 1/3 done.
- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Apr 24, 2011if 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
- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Apr 23, 2011wtb black temple and sunwell data not being half assed/incomplete. sigh at blizzard leaving things unfinsihed
- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Apr 23, 2011Thanks for the 4.1 update!
- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Apr 23, 2011@ fbrevoort should be done with r82
- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Apr 17, 2011any plan update coming for BC maps in 4.1?
- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Jan 20, 2011Hi,
Minor thing: Orgrimmar has a new floor: Cleft of Shadow. Not necessary in my addon, but just thought I should post that.
- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Dec 5, 2010they may put it back in, seems liek the keep putting it in and taking it out.
- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Dec 2, 2010sad they changed their mind about BC maps :( i was so looking forward to complete deprication of zone name based location detections.
- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Oct 27, 2010Just 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.
- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Oct 3, 2010I've got all the map data in the lib just missing the textures themselves for all bc instances
- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Oct 3, 2010wish blizz would hurry up and add the missing BC maps, magisters terrace, hellfire ramparts, all the raids. missing that data is preventing a full change over to all things map based in 4.0 :)
- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Sep 26, 2010ill be updating functions today, for continent and world map up/down scaling as well as fetching zone offsets.
- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Sep 25, 2010It should be good to use now on live,Ptr and beta I've still got some functions to clean up and update the documentation
- 
            
                
                View User Profile
     
            
            
            
       
 
 
       - 
            
                
                Send Message
     
            
            
            
       
 
 
Posted Sep 13, 2010Will this library be updated for Cataclysm during Beta, or only after release? I'd like to switch my Astrolabe over to using this library, and I'll either go and start surveying the map sizes and offsets myself (shouldn't be too hard, after all, two coord points per zone remapped to world map = zone size and offset) and post those for you, or just use whatever you have :)