How to get / edit quest map markers on the world map?

I’ve had a check of the frames being used, and using fstack I can see that some of frames inside WorldMapFrame are named f20bb046, etc…

How can I get these and hide them using a script?

You can put things on top but you can’t edit what’s there.

What exactly are you trying to do?

They are called “pins” and you can for example hide all of them like this.

WorldMapFrame:ExecuteOnAllPins(function(self) self:Hide() end)

If you need to target any specific pins, for example hiding all dungeon and raid entrances, you can do this.

for pin in WorldMapFrame:EnumeratePinsByTemplate("DungeonEntrancePinTemplate") do
    pin:Hide()
end

You can get the template of a pin by using /dump GetMouseFocus().pinTemplate while hovering on it.

List of most of the map data providers in the default UI. Pin template can be found in some of these lua files, for example local pin = self:GetMap():AcquirePin("DungeonEntrancePinTemplate", dungeonEntranceInfo);
https://sourcegraph.com/github.com/Gethe/wow-ui-source@live/-/tree/Interface/AddOns/Blizzard_SharedMapDataProviders

If that’s what you’re trying to turn off, you can just do it via the magnifying glass in the top right corner of the map.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.