Cesium InfoBox

Hello,

is it possible to add a button to the infobox opened up when clicking on an entity?

I’ve set the infobox and tried to set the button through the description but I get “not a function error” when clicking the button.

thought about adding a button similar to the close/track buttons that are currently implemented.

thanks,

Lior.

Either that or I’m getting that the HTML element I’m referring to is about:blank.

I think the issue is that the actual HTML element isn’t created right away. Check out Ed’s response here: https://groups.google.com/d/msg/cesium-dev/PKwsDiRDVOo/5Q_VeyFeTP8J

He sets up an event listener for the infobox to load before attaching the event to the button. Here’s a running example.

Thank you!

it did work.