Skip to content

[Bug] POI markers visible when BetterMap is installed despite HyperFactions hiding them #103

Description

@derrickmehaffy

Description

When BetterMap is installed alongside HyperFactions, POI markers (Kweebec camps, villages, etc.) appear on the world map despite HyperFactions normally hiding them. Without BetterMap, these POIs are hidden because our generatePointsOfInterest() returns an empty map.

Steps to Reproduce

  1. Install HyperFactions without BetterMap
  2. Open world map — no POI markers visible (expected)
  3. Install BetterMap (v1.3.3+) alongside HyperFactions
  4. Open world map — pink tent POI markers now visible in explored areas

Expected Behavior

POI visibility should be consistent whether BetterMap is installed or not. Ideally, faction mods should be able to selectively control POI visibility (e.g., hide POIs in enemy territory, show in friendly territory).

Root Cause

BetterMap wraps the native POIMarkerProvider with its own PoiPrivacyProvider, which discovers and caches POIs independently from HyperFactions' generator. By the time our delayed registration replaces the generator (which returns empty POIs), BetterMap has already captured the original POI data.

Current Workaround

Set hideAllPoiOnMap: true in BetterMap's config.json. This is all-or-nothing — no per-faction filtering.

Proper Fix

Requires a MapMarkerFilter API from BetterMap that allows external mods to filter POI/warp/spawn markers based on custom logic (e.g., faction territory ownership). This has been proposed upstream:

Proposed API summary

We've proposed three interfaces to the BetterMap team:

  1. PlayerVisibilityFilter — A @FunctionalInterface that external mods register on PlayerRadarManager to control per-viewer/per-target radar visibility. Multiple filters stack with AND logic. This would replace the HiddenPlayersManager workaround we currently use.

  2. ExplorationSharingProvider — Allows faction/team/party mods to share explored chunks between members, so faction territory appears explored for all members.

  3. MapMarkerFilter — Allows external mods to filter non-player markers (POIs, warps, spawn, death) based on custom logic like faction territory ownership. This is what would fix this specific issue.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededsev medium

    Type

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions