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
Missing data for Sethekk Halls. Getting spammed with "LibMapData-1.0 is missing data for 723" as soon as I zone in.
yeah 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.
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
wtb black temple and sunwell data not being half assed/incomplete. sigh at blizzard leaving things unfinsihed
Thanks for the 4.1 update!
@ fbrevoort should be done with r82
any plan update coming for BC maps in 4.1?
Hi,
Minor thing: Orgrimmar has a new floor: Cleft of Shadow. Not necessary in my addon, but just thought I should post that.
they may put it back in, seems liek the keep putting it in and taking it out.
sad they changed their mind about BC maps :( i was so looking forward to complete deprication of zone name based location detections.
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.
I've got all the map data in the lib just missing the textures themselves for all bc instances
wish 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 :)
ill be updating functions today, for continent and world map up/down scaling as well as fetching zone offsets.
It should be good to use now on live,Ptr and beta I've still got some functions to clean up and update the documentation
Will 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 :)
its there, the real map name is NetherStormArena