Credit

open external class Credit(val html: String, var showOnScreen: Boolean = definedExternally)(source)

A credit contains data pertaining to how to display attributions/credits for certain content on the screen.

// Create a credit with a tooltip, image and link
const credit = new Credit('<a href="https://cesium.com/" target="_blank"><img src="/images/cesium_logo.png" style="vertical-align: -7px" title="Cesium"/></a>');

See also

Constructors

Link copied to clipboard
constructor(html: String, showOnScreen: Boolean = definedExternally)

Types

Link copied to clipboard
external object Companion

Properties

Link copied to clipboard
external val element: HTMLElement

Gets the credit element

Link copied to clipboard
external val html: String

An string representing an html code snippet

Link copied to clipboard
external var showOnScreen: Boolean

If true, the credit will be visible in the main credit container. Otherwise, it will appear in a popover. All credits are displayed inline, if you have an image we recommend sizing it correctly to match the text or use css to vertical-align it. Default value - false