Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

WorldMap Example

WorldMap

ADDON:ImportObject(26) -- WorldMap
-- ADDON:ImportObject(OBJECT.WorldMap)
ADDON:ImportObject(10) -- ImageDrawable
-- ADDON:ImportObject(OBJECT.ImageDrawable)

local worldMapExample = UIParent:CreateWidget("worldmap", "worldMapExample", "UIParent")
worldMapExample:SetExtent(928, 556)
worldMapExample:AddAnchor("CENTER", "UIParent", 0, 0)
worldMapExample:InitMapData(928, 556, "ui/map/image_map.tga", "ui/map/frame_map.dds")

local playerDrawable = worldMapExample:CreateDrawable("ui/map/icon/player_cursor.dds", "player_cursor", "overlay")
worldMapExample:SetPlayerDrawable(playerDrawable)

worldMapExample:Show(true)

WorldMap Example