After making a copy, try changing:
Code:
local _, name, _, textureIndex = GetMapLandmarkInfo(i)
too
Code:
local landmarkType, name = C_WorldMap.GetMapLandmarkInfo(i)
and replace occurences of textureIndex with landmarkType
The macro becomes
Code:
/run for i = 1, GetNumMapLandmarks() do local landmarkType, name = C_WorldMap.GetMapLandmarkInfo(i) print(i, landmarkType, name) end
I'm not sure landmarkType is a direct correlation or can be mapped to what was the textureIndex but you're no worse off
These are the landmarkType used in the WorldMapFrame (there may be more)
LE_MAP_LANDMARK_TYPE_TAMER = 1
LE_MAP_LANDMARK_TYPE_GOSSIP = 3
LE_MAP_LANDMARK_TYPE_TAXINODE = 5
LE_MAP_LANDMARK_TYPE_VIGNETTE = 6
LE_MAP_LANDMARK_TYPE_INVASION = 8
LE_MAP_LANDMARK_TYPE_DUNGEON_ENTRANCE = 9
LE_MAP_LANDMARK_TYPE_CONTRIBUTION = 10
LE_MAP_LANDMARK_TYPE_MAP_LINK = 11