-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A couple questions #39
Comments
Got it so the id: can be anything, it doesn't have to be 'custom_layer'? |
Of course, the id is a string value check out mapbox documentation for |
Gotcha, perfect. So you remove them the same way, so it would be tb.remove('floor_0'), etc. |
You are mixing things... What I would recommend to you is to add an attribute with the layerId to each 3D object as part of their init options, then you´ll be able to loop through all them. I will consider to create methods to override |
@jscastro76 Gotcha, that makes better sense now. Thanks for the help. |
@jscastro76 I have a couple Questions:
How do I delete specific models that I have loaded, do I have to loop through all tb.world.children and look for a name, for one to remove, or is there a way to remove via name, or Id.
Can I group by id, and have some objects that are meant to be animated, and not, and then remove or clean via different id's. For example, here in addlayer, do all threebox objects need to be added to this id, or is there a smarter way.
map.addLayer({
id: 'custom_layer',
type: 'custom',
renderingMode: '3d'
The text was updated successfully, but these errors were encountered: