You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Marker: delete() leaves the cluster label of the deleted markers on screen, and cluster(world) clears the other worlds' clusters #859
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.
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.
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".
Delete both pins deletes them with Marker.delete() in both worlds, and calls cluster() by hand on the left only.
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 []
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.
Activity