Skip to content

Marker: delete() leaves the cluster label of the deleted markers on screen, and cluster(world) clears the other worlds' clusters #859

Open

Description

@BiroBotond0

Describe the bug 📝

Marker.delete(id) disposes the marker's label and removes it from the list, but not the cluster in clusterLabels that holds it. The cluster label stays on screen with the old count until the next cluster() (when the camera comes to rest). Deleting every marker of a cluster leaves a "2" floating over nothing. If you don't move the camera the pins will stay.

Image

Two pins clustered into a "2", then both deleted with Marker.delete(). Right: the "2" stays. Left: the same, then cluster() called by hand.

Expected: delete() removes (or reclusters) the clusters that hold the deleted marker.

Where in the code

Reproduction ▶️

https://github.com/BiroBotond0/thatopen-bcf-bug-reproduction/tree/main/issue-6

Steps to reproduce 🔢

  1. In the repro: npm install, npm run dev, open issue-6/example.html. Both worlds load That Open's school_arq.frag and get two pins 1 m apart, clustered into a "2".
  2. Delete both pins deletes them with Marker.delete() in both worlds, and calls cluster() by hand on the left only.
  3. The panel's Result (the cluster labels the Marker keeps in the right world's scene):
BUG labels left on the right after deleting both pins: got ["2"], expected []

System Info 💻

System:
    OS: Windows 11 10.0.26200
    CPU: (16) x64 Intel(R) Core(TM) i9-10885H CPU @ 2.40GHz
    Memory: 33.34 GB / 63.76 GB
  Binaries:
    Node: 22.22.1 - C:\nvm4w\nodejs\node.EXE
    npm: 11.12.0 - C:\nvm4w\nodejs\npm.CMD
  Browsers:
    Chrome: 156.0.8078.48
    Edge: Chromium (152.0.4191.53)
  npmPackages:
    @thatopen/components: 3.6.0 => 3.6.0
    @thatopen/components-front: 3.6.0 => 3.6.0
    @thatopen/fragments: 3.6.0 => 3.6.0
    @thatopen/ui: 3.4.17 => 3.4.17
    camera-controls: 3.1.2 => 3.1.2
    three: 0.184.0 => 0.184.0
    web-ifc: 0.0.77 => 0.0.77

Used Package Manager 📦

npm

Error Trace/Logs 📃

No response

Validations ✅

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.
  • Check that this is a concrete bug. For Q&A join our Community.
  • The provided reproduction is a minimal reproducible example of the bug.

Activity

  1. added
    bug
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions