Skip to content

World Map: persist/bundle minimap-marker icons (currently re-fetched every login) #22

Description

@atapifire

Observed: the vanilla minimap-marker icons (banks/POIs from getMinimapMarkers()) load in noticeably later than object icons after login.

Cause: the two icon systems aren't equal.

  • Object icons (trees/rocks/NPCs) are rendered 3D models cached in ModelIconCachemodel-icons.json, which ships in the build and persists in IndexedDB → instant.
  • Minimap-marker icons are loaded fresh each session from https://evilquest.net/minimap/icons/<name> into a volatile in-memory mmIconCache Map (WorldMapPlugin.ts, ~L3097). Not persisted, not bundled → re-fetched over the network every login.

Proposed fix: persist marker icons to a PluginAssetCache namespace (and/or bundle them like model-icons.json) so they load instantly and offline.

Follow-up from #21.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions