Astrolabe/World Map Monitor
From Esamynn's Wiki
Astrolabe ยป Astrolabe/World Map Monitor
Contents |
Astrolabe has a system the monitors the visible status of known World Map frames, and avoids actively calling WoW client API functions that fire WORLD_MAP_UPDATE while any such frames are visible. This system utilizes a global table called "WorldMapDisplayFrames" to keep allow AddOns that create new world map frames to easily allow this system to learn about them. The WorldMapFrame in the default UI is, of course, monitored by this system by default.
Providing Compatibility
AddOns that create a new frame that is sensitive to the WORLD_MAP_UPDATE event, in such a way that its firing is disruptive to the AddOn's normal operation, can add this frame to the global table WorldMapDisplayFrames using table.insert(). This will cause Astrolabe to avoid causing WORLD_MAP_UPDATE to fire when it is attempting to update the positions of icons it is managing. This means that if the current map zoom does not show a valid position for the player, the update cycle will be halted until all monitored frames are hidden.

