Skip to content

[BUG] Webmap never updates image tiles after initial load (images.regions always empty) #1023

@DeFlanko

Description

@DeFlanko

Summary:

  • The webmap renders terrain (image tiles) only once at load, but never updates tile images again even as the player moves or explores. The player marker, coordinates, and waypoints all update in real time, but the base map images do not refresh.

Observed symptoms:

  • Initial map loads and displays correctly.

  • Player icon moves and is updated as you move.

  • Waypoints display and update as expected.

  • The terrain/tiles under the player do not update as you move.

  • Polling (browser/JavaScript) is working: repeated requests for /status, /data/all, /data/players, etc. show correct player position and world state.

  • The /data/all API responses always contains:

    "images":  {
        "since":  ..., 
        "regions": [],
        "queryTime": ...
    }

    (regions is always empty)

  • The map in the web browser visually appears frozen except for the player/marker/waypoint movements.

Screenshots:

Network requests showing polling working, but map not updating /data/all shows working player data Image

Analysis

  • The backend images.regions array (from /data/all) is always empty.
  • According to the codebase, tile/region change detection should list recently changed/created chunk images here, but it's not happening.
  • This causes the frontend (webmap-client) to believe no new tiles are available and never refreshes terrain tiles, even when the player moves or new terrain is mapped.

Steps to Reproduce

  1. Launch Minecraft (confirmed with both singleplayer and multiplayer, but this was tested on a multiplayer server)
  2. Ensure both JourneyMap (minimap in-game is working) and JourneyMap WebMap are installed and enabled
  3. Open the webmap in a browser (e.g., http://localhost:8080)
  4. Move your character around, explore/visit unmapped or previously mapped terrain
  5. Observe: Player icon moves, waypoints update, but the map image tiles do not refresh
  6. Inspect /data/all API response and confirm images.regions is always empty

Additional Context

  • JourneyMap version: 6.0.0-beta.54
  • Minecraft version: 1.21.11
  • Webmap server version: [latest from main branch]
  • Affected dimension: Confirmed in Nether, but likely all dimensions

Expected Behavior

  • As the player moves or new areas are mapped, the backend should detect new/updated chunk images and report them in the images.regions array. The webmap frontend should then reload those tiles.

Actual Behavior

  • The map/tiles only render once. Player/waypoints move, but terrain image tiles are never refreshed since backend always returns regions: [].

Relevant code references:

  • ImagesData in Common/src/main/kotlin/journeymap_webmap/service/webmap/kotlin/routes/data.kt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions