api/Azeroth World Map

This page details special handling of the Azeroth World Map (ie. the overview map of all continents in Azeroth) in HereBeDragons-2.0

Since HereBeDragons primarily deals with world coordinates, and there is no global instance that covers the entirety of Azeroth, translating coordinates between continents or up to a world level is not directly supported. Instead, the API supports a special case to translate from and to the Azeroth World Map - translating between different continents however remains unavailable.

There are no World Coordinates for the Azeroth World Map, all World Coordinates remain within the original continent boundaries. Only Zone Coordinates are available which allow basic handling of the World Map for map-related functionality.

To translate from or to the World Map, HBD needs to know which continent to use as reference. To facilitate this, interacting with the Azeroth World Map requires using different functions in the API in some cases, specifically when translating between world/zone coordinates. Translating zone coordinates from another zone straight to the Azeroth World Map however does not require any changes, since the zone specifies which continent its on.

Examples

Translate a World Coordinate from Northrend (instanceID 571) to the Azeroth World Map

local world_x, world_y = HBD:GetAzerothWorldMapCoordinatesFromWorld(x, y, 571)

Similarly, Zone Coordinates from the World Map can be translated back to a continent - you do however need to know which continent (Pandaria in this case)

local x, y = HBD:GetWorldCoordinatesFromAzerothWorldMap(world_x, world_y, 870)

Translate Zone Coordinates from Darnassus (uiMapID 89) to the Azeroth World Map. Translating between a zone and the world map works without special handling!

local x, y = HBD:TranslateZoneCoordinates(x, y, 89, WORLDMAP_AZEROTH_ID)

Continent Instance IDs

Following Continent InstanceIDs are currently supported:

ID Continent
0 Eastern Kingdoms
1 Kalimdor
571 Northrend
870 Pandaria
1220 Broken Isles
1642 Zandalar
1643 Kul Tiras

 

Outlands and Draenor are not listed here because they are not part of Azeroth, and coordinate translation is therefor naturally impossible.