API GetMapLandmarkInfo

* Widget API
* Macro API
* Lua functions
* Events
* XML UI
* Changes

* HOWTOs
* Snippets
* UI tech.

* Category nav.

→ WoW API

Returns the information about a landmark on the current world map.

```
name, description, textureIndex, x, y, mapLinkID, showInBattleMap, return8, return9 = GetMapLandmarkInfo(landmarkIndex);

```

Note that 3.0.2 added more icons (102 now), doubled the size of the POIIcons.blp texture to 256x256 and moved the invisible texture from index 15 to 0.

## Parameters

### Arguments

landmarkIndex
Number - Indicates which landmark to query (from 1 to GetNumMapLandmarks())
### Returns

name
String - The name of the landmark
description
String - A description of the landmark. In Battlegrounds this can dynamic information such as which faction controls the landmark.
textureIndex
Number - An index representing which landmark icon to display. These icons are in `Interface\Minimap\POIIcons.blp`, in an 16x16 grid (each icon is 16x16). Values are listed in the Landmarks section, below:
x
Number - The X location of the landmark's center (A proportion of the current map's width, between 0 and 1)
y
Number - The Y location of the landmark's center (A proportion of the current map's height, between 0 and 1)
mapLinkID
Number - ?
showInBattleMap
Boolean - ?
return8
Number - ?
return9
Number - ?
### Landmarks

* 1  - 16x16 Mine
* 2  - 16x16 Mine, Horde
* 3  - 16x16 Mine, Alliance
* 4  - 16x16 Graveyard, Alliance assaulted
* 5  - 16x16 Town
* 6  - 16x16 City
* 7  - 16x16 Flag
* 8  - 16x16 Gravestone
* 9  - 16x16 Tower, Alliance assaulted
* 10  - 16x16 Tower, Horde
* 11  - 16x16 Tower, Alliance
* 12  - 16x16 Tower, Horde assaulted
* 13  - 16x16 Graveyard, Horde
* 14  - 16x16 Graveyard, Horde assaulted
* 15  - 16x16 Graveyard, Alliance
* 16  - 16x16 Gold Mine
* 17  - 16x16 Gold Mine, Alliance assaulted
* 18  - 16x16 Gold Mine, Alliance
* 19  - 16x16 Gold Mine, Horde assaulted
* 20  - 16x16 Gold Mine, Horde
* 21  - 16x16 Lumber Mill
* 22  - 16x16 Lumber Mill, Alliance assaulted
* 23  - 16x16 Lumber Mill, Alliance
* 24  - 16x16 Lumber Mill, Horde assaulted
* 25  - 16x16 Lumber Mill, Horde
* 26  - 16x16 Blacksmith
* 27  - 16x16 Blacksmith, Alliance assaulted
* 28  - 16x16 Blacksmith, Alliance
* 29  - 16x16 Blacksmith, Horde assaulted
* 30  - 16x16 Blacksmith, Horde
* 32  - 16x16 Farm, Alliance assaulted
* 33  - 16x16 Farm, Alliance
* 34  - 16x16 Farm, Horde assaulted
* 35  - 16x16 Farm, Horde
* 36  - 16x16 Stables, neutral
* 37  - 16x16 Stables, Alliance assaulted
* 38  - 16x16 Stables, Alliance
* 39  - 16x16 Stables, Horde assaulted
* 40  - 16x16 Stables, Horde
* 41  - 16x16 Skull, purple
* 42  - 16x16 Unknown
* 43  - 16x16 Flag, Alliance
* 44  - 16x16 Flag, Horde
* 45  - 16x16 Flag
* 46  - 16x16 Alliance crest
* 47  - 16x16 Alliance crest, uncaptured
* 48  - 16x16 Horde crest
* 49  - 16x16 Horde crest, uncaptured
* 50  - 16x16 Tower, Alliance damaged
* 51  - 16x16 Tower, Alliance destroyed
* 52  - 16x16 Tower, Horde damaged
* 53  - 16x16 Tower, Horde destroyed
* 54  - 16x16 Tower, damged
* 55  - 16x16 Tower, destroyed
* 56  - 16x16 Bridge
* 57  - 16x16 Bridge, damaged
* 58  - 16x16 Bridge, destroyed
* 59  - 16x16 Bridge, Horde
* 60  - 16x16 Bridge, Horde damaged
* 61  - 16x16 Bridge, Horde destroyed
* 63  - 16x16 Bridge, Alliance damaged
* 64  - 16x16 Bridge, Alliance destroyed
* 65  - 16x16 Workshop
* 66  - 16x16 Workshop, damaged
* 67  - 16x16 Workshop, destroyed
* 68  - 16x16 Workshop, Horde
* 69  - 16x16 Workshop, Horde damaged
* 70  - 16x16 Workshop, Horde destroyed
* 71  - 16x16 Workshop, Alliance
* 72  - 16x16 Workshop, Alliance damaged
* 73  - 16x16 Workshop, Alliance destroyed
* 74  - 16x16 Gate
* 75  - 16x16 Gate, damaged
* 76  - 16x16 Gate, destroyed
* 77  - 16x16 Gate, Horde
* 78  - 16x16 Gate, Horde damaged
* 79  - 16x16 Gate, Horde destroyed
* 80  - 16x16 Gate, Alliance
* 81  - 16x16 Gate, Alliance damaged
* 82  - 16x16 Gate, Alliance destroyed
* 83  - 16x16 Wall, horizontal
* 84  - 16x16 Wall, horizontal damaged
* 85  - 16x16 Wall, horizontal destroyed
* 86  - 16x16 Wall, Horde horizontal
* 87  - 16x16 Wall, Horde horizontal damaged
* 88  - 16x16 Wall, Horde horizontal destroyed
* 89  - 16x16 Wall, Alliance horizontal
* 90  - 16x16 Wall, Alliance horizontal damaged
* 91  - 16x16 Wall, Alliance horizontal destroyed
* 92  - 16x16 Wall, vertical
* 94  - 16x16 Wall, vertical destroyed
* 95  - 16x16 Wall, Horde vertical
* 96  - 16x16 Wall, Horde vertical damaged
* 97  - 16x16 Wall, Horde vertical destroyed
* 98  - 16x16 Wall, Alliance vertical
* 99  - 16x16 Wall, Alliance vertical damaged
* 100  - 16x16 Wall, Alliance vertical destroyed
* 101  - 16x16 Combat
* 102  - 16x16 Gate, yellow
* 103  - 16x16 Gate, yellow damaged
* 104  - 16x16 Gate, yellow destroyed
* 105  - 16x16 Gate, purple
* 106  - 16x16 Gate, purple damaged
* 107  - 16x16 Gate, purple destroyed
* 108  - 16x16 Gate, green
* 109  - 16x16 Gate, green damaged
* 110  - 16x16 Gate, green destroyed
* 111  - 16x16 White 0
* 112  - 16x16 White 1
* 113  - 16x16 White 2
* 114  - 16x16 White 3
* 115  - 16x16 White 4
* 116  - 16x16 White 5
* 117  - 16x16 White 6
* 118  - 16x16 White 7
* 119  - 16x16 White 8
* 120  - 16x16 White 9
* 121  - 16x16 White :
* 122  - 16x16 ?, Horde
* 123  - 16x16 ?, Horde damaged
* 125  - 16x16 ?, Alliance
* 126  - 16x16 ?, Alliance damaged
* 127  - 16x16 ?, Alliance destroyed
* 128  - 16x16 Tower, green
* 129  - 16x16 Tower, green damaged
* 130  - 16x16 Tower, green destroyed
* 131  - 16x16 Tower, yellow
* 132  - 16x16 Tower, yellow damaged
* 133  - 16x16 Tower, yellow destroyed
* 134  - 16x16 Skull, orange
* 135  - 16x16 Siege workshop
* 136  - 16x16 Siege workshop, Alliance
* 137  - 16x16 Siege workshop, Alliance assaulted
* 138  - 16x16 Siege workshop, Horde
* 139  - 16x16 Siege workshop, Horde assaulted
* 140  - 16x16 Hangar
* 141  - 16x16 Hangar, Alliance
* 142  - 16x16 Hangar, Alliance assaulted
* 143  - 16x16 Hangar, Horde
* 144  - 16x16 Hangar, Horde assaulted
* 145  - 16x16 Docks
* 146  - 16x16 Docks, Alliance
* 147  - 16x16 Docks, Alliance assaulted
* 148  - 16x16 Docks, Horde
* 149  - 16x16 Docks, Horde assaulted
* 150  - 16x16 Refinery
* 151  - 16x16 Refinery, Alliance
* 152  - 16x16 Refinery, Alliance assaulted
* 153  - 16x16 Refinery, Horde
* 154  - 16x16 Refinery, Horde assaulted

* 177 Dig Location

ru:API GetMapLandmarkInfo