-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
billboard text label #243
Comments
An entity is recommended unless a number of the data is massive. It can have multiple visualizers: e.g. point, label, billboard. <Entity position={...} onClick={...}>
<BillboradGraphics ... />
<LabelGraphics ... />
</Entity> |
thank you but i'm not sure how to use it. |
Here is example of graphics: https://resium.darwineducation.com/examples/?path=/story/entity--graphics Please open "story" tab and you can refer to example codes. |
amazing thank you! |
If you are familiar with React, it may be easy. const Component = ({ entities }) => {
const [labelDisplayedEntity, setLabelDisplayedEntity] = useState();
return (
<Viewer>
{entities.map(e => (
<Entity
key={e.id}
id={e.id}
position={e.position}
onClick={(e2) => setLabelDisplayedEntity(e2.id)}>
<BillboardGraphics ... />
<LabelGraphics show={labelDisplayedEntity === e.id} ... />
</Entity>
)}
</Viewer>
);
}; |
Hi,
how can i pick a billboard from my billboard collection (with mouse click) in resium and add a text form with all his details (speed, height and more..) next to my billboard.
i can't find any text form to add to my code that working for me.
thank you!
Nir
The text was updated successfully, but these errors were encountered: