Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Proper way to delete markers #50

Open
glampr opened this issue Feb 17, 2016 · 1 comment
Open

Proper way to delete markers #50

glampr opened this issue Feb 17, 2016 · 1 comment

Comments

@glampr
Copy link
Contributor

glampr commented Feb 17, 2016

What would be the proper way to delete old markers, so that I can add new data?

@rmckeel
Copy link

rmckeel commented Mar 23, 2016

Hey @glampr, I don't work on this project, but here's what I did:

In createPoints() add a 'name' to the line:

  function createPoints() {
...
      this.points.name = "line";
      scene.add(this.points);
    }
  }
  function removeAllPoints() {
    scene.remove(scene.getObjectByName("line"));
  }
...
this.removeAllPoints = removeAllPoints;

Did you find this useful? If so, I may create a PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants