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
Facts
- Date created
- May 30, 2010
- Categories
- Last update
- Dec 02, 2011
- Development stage
- Release
- Language
- enUS
- License
- All Rights Reserved
- Curse link
- LibMapData-1.0
- Reverse relationships
- 1
- Downloads
- 75,578
- Recent files
- R: 0.21-release for 4.3 Dec 02, 2011
- A: r99 for 4.3 Dec 02, 2011
- R: 0.20-release for 4.2 Nov 29, 2011
- A: r97 for 4.2 Nov 29, 2011
- A: r96 for 4.2 Nov 28, 2011
Authors
Relationships
- Tool used
- DataTools
- Embedded library
- CallbackHandler-1.0
- LibStub
- Reply
- #52
kagaro Apr 14, 2012 at 21:35 UTC - 0 likesi need to regerenate data
- Reply
- #51
wxx011 Apr 03, 2012 at 04:56 UTC - 0 likesEntering darkmoonfaire It shows LibMapData-1.0 is missing data for 823
- Reply
- #50
kaelspriest Jan 23, 2012 at 21:29 UTC - 0 likesMay I have permission to use this in my addon? (raidframes)
- Reply
- #49
iispyderii Dec 19, 2011 at 16:07 UTC - 0 likesIf 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.
- Reply
- #48
michaelspain Dec 17, 2011 at 02:17 UTC - 0 likesSeems 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.
- Reply
- #47
iispyderii Dec 16, 2011 at 18:41 UTC - 0 likesI'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.
- Reply
- #46
Remota Dec 13, 2011 at 20:17 UTC - 0 likeswarmaster blackhorn and spine of deathwing doesn't work for me..
- Reply
- #45
kagaro Dec 02, 2011 at 00:28 UTC - 0 likestagging a new release now
- Reply
- #44
mysticalos Dec 01, 2011 at 20:28 UTC - 0 likesthe 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
- Reply
- #43
kagaro Nov 28, 2011 at 13:02 UTC - 0 likesThePants99 - yes Cyprias - Yes
License was set as all rights reserved to counter those 3rd party rehosting sites