The flight point icons are not part of the map textures. They are separate objects, and can be manipulated at will. The frames are
WorldMapFramePOIn, where
n is some number, and their textures are
WorldMapFramePOInTexture. They are set up in the
WorldMapFrame_Update function in
FrameXML/WorldMapFrame.lua, starting at line 483:
http://wow.go-hero.net/framexml/1601...pFrame.lua#483
If you want to unconditionally hide them all, this will do it:
Code:
hooksecurefunc("WorldMapFrame_Update", function()
for i = 1, GetNumMapLandmarks() do
local name, _, textureIndex = GetMapLandmarkInfo(i)
if textureIndex == 178 or textureIndex == 179 then
local poi = _G["WorldMapFramePOI"..i]
if poi then
-- The "if poi then" check is probably not needed, but better safe than sorry!
poi:Hide()
end
end
end
end)
178 is a neutral flight point, 179 is a Horde flight point, and I'd guess Alliance flight points are either 177 or 180 but I didn't actually log onto an Alliance character to check. If you're playing Alliance and need to hide their flight points, you can run this macro while the world map is open and showing at least 1 flight point to find out:
Code:
/run for i = 1, GetNumMapLandmarks() do local name, _, id = GetMapLandmarkInfo(i) print(i, id, name) end
If you only want to hide them in areas you haven't discovered yet, that's a bit more work, and I probably won't feel like spending any time on it before Monday when I am back at work.
If you need help turning the above code into an addon, copy and paste it into this page:
http://addon.ziuo.net/