peterqliu / threebox

A three.js plugin for Mapbox GL JS, with support for basic animation and advanced 3D rendering.
MIT License
526 stars 320 forks source link

Remove method not working. #33

Closed shustudios closed 6 years ago

shustudios commented 6 years ago

After viewing the source code, it seems that the Three.js Object you add using 'addAtCoordinate' gets inserted into a group. Therefore to get the remove method to work, I had to pass in the object's parent:

threebox.remove(3dObject.parent);