addStaticCredit
Adds a Credit that will show on screen or in the lightbox until removed with CreditDisplay.removeStaticCredit.
// Add a credit with a tooltip, image and link to display onscreen
const credit = new Credit(`<a href="https://cesium.com/" target="_blank"><img src="/images/cesium_logo.png" title="Cesium"/></a>`, true);
viewer.creditDisplay.addStaticCredit(credit);
Content copied to clipboard
// Add a credit with a plaintext link to display in the lightbox
const credit = new Credit('<a href="https://cesium.com/" target="_blank">Cesium</a>');
viewer.creditDisplay.addStaticCredit(credit);
Content copied to clipboard
Parameters
credit
The credit to added