Reputation: 1147
I'm trying to convert a dbId
to node
to use the function setNodeOff()
In this link, author describe the method dbIdToNode
but I get an undefined error when I use it :
(v is my viewer)
If I check v.model.getData() .instanceTree
, I get no undefined
error :
How I can convert a dbId to a node?
Upvotes: 1
Views: 217
Reputation: 823
Actually, you don't need to convert dbId
to node
to use the function setNodeOff()
This line will work: viewer.impl.visibilityManager.setNodeOff(dbId, true);
Upvotes: 2