new Cesium.Credit(html, showOnScreen)

信用包含有关如何显示屏幕上某些内容的归属/信用的数据.
Name Type Default Description
html string 代表 html 代码片段的字符串
showOnScreen boolean false optional 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.
Throws:
Example:
// Create a credit with a tooltip, image and link
const credit = new Cesium.Credit('<a href="https://cesium.com/" target="_blank"><img src="/images/cesium_logo.png"  style="vertical-align: -7px" title="Cesium"/></a>');

Members

readonly element : HTMLElement

获得信用要素

readonly html : string

信用内容

showOnScreen : boolean

无论是在屏幕上还是在灯盒中显示信用

Methods

static Cesium.Credit.clone(credit)Credit

重复信用实例.
Name Type Description
credit Credit optional 重复的功劳.
Returns:
A new Credit instance that is a duplicate of the one provided. (Returns undefined if the credit is undefined)

static Cesium.Credit.equals(left, right)boolean

如果信用值相等, 返回为真
Name Type Description
left Credit optional 第一个功劳
right Credit optional 第二个功劳
Returns:
如果左右对等, 则使用 NT 0 true NT 1 , 否则使用 NT 2 false NT 3 .

equals(credit)boolean

如果信用值相等, 返回为真
Name Type Description
credit Credit optional 与人相比的功劳.
Returns:
如果左右对等, 则使用 NT 0 true NT 1 , 否则使用 NT 2 false NT 3 .
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.