Hi,
I want to render the HTML content into billboard. Below is the code snippet. I’ve created a drawImage(), to create a dynamic HTML content. The result should render in billboard.
var entity = viewer.entities.add({
id: data.id,
name: data.name,
data: data,
position: position,
orientation: orientation,
model: {
uri: url,
minimumPixelSize: 0
},
billboard: {
image: drawImage(data),
show: true
}
});
function drawImage(data) {
// good look and feel HTML content to show the model details.
var html = "<div class='popup'>\
<img src=’/images/movies/’"+ data.image + " >\
< div class=‘description’ >\
\ + data.description + \
return html;
}
``
Appreciate your support to achieve this feature. If possible, share some sample code on this…
Thank you!